doc: dont lose title while sanitizing markup
authorRamprasad Venkataraman <ramv@illinois.edu>
Tue, 7 Aug 2012 16:03:38 +0000 (11:03 -0500)
committerRamprasad Venkataraman <ramv@illinois.edu>
Tue, 7 Aug 2012 16:03:38 +0000 (11:03 -0500)
doc/markupSanitizer.py

index 247f81c1dfee7f387d81f36b561069c5d6bb645b..18d7632101e716913397a2c1ba8e435636fd2d64 100755 (executable)
@@ -56,6 +56,7 @@ titl = soup.find('title')
 soup.find('head').extract()
 newhead = BeautifulSoup(open("../assets/head.html"), "lxml")
 newhead = newhead.find('head').extract()
+newhead.append(titl)
 soup.html.body.insert_before(newhead)
 
 # Print cleaned up markup to stdout