* html von unnoetigen tags befreit

This commit is contained in:
phil 2006-06-15 12:45:24 +00:00
parent db9d182551
commit 88cbe40b89

View file

@ -40,7 +40,7 @@ try:
content=string.replace(content,footer,"")
#put whole content into div tags
content = string.replace(content,"</BODY>",'</div>')
content = string.replace(content,"<BR><HR>\n\n</BODY>",'</div>')
content = string.replace(content,"</HTML>",'<!-- end of main -->')
#remove empty image subtitles
@ -52,8 +52,8 @@ try:
# Fussnoten finden und Ende ersetzen
fussnoten = string.find(content,"<BR><HR><H4>Fu&szlig;noten</H4>")
startoffset = string.find(content,"</DL>\n<BR><HR>",fussnoten)
endoffset = startoffset + len("</DL>\n<BR><HR>")
startoffset = string.find(content,"</DL>",fussnoten)
endoffset = startoffset + len("</DL>")
content = content[:startoffset] + "</DL>\n</div>" + content[endoffset:]
# Linie vor Fussnoten wird entfernt