* html von unnoetigen tags befreit
This commit is contained in:
parent
db9d182551
commit
88cbe40b89
1 changed files with 3 additions and 3 deletions
|
@ -40,7 +40,7 @@ try:
|
||||||
content=string.replace(content,footer,"")
|
content=string.replace(content,footer,"")
|
||||||
|
|
||||||
#put whole content into div tags
|
#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 -->')
|
content = string.replace(content,"</HTML>",'<!-- end of main -->')
|
||||||
|
|
||||||
#remove empty image subtitles
|
#remove empty image subtitles
|
||||||
|
@ -52,8 +52,8 @@ try:
|
||||||
|
|
||||||
# Fussnoten finden und Ende ersetzen
|
# Fussnoten finden und Ende ersetzen
|
||||||
fussnoten = string.find(content,"<BR><HR><H4>Fußnoten</H4>")
|
fussnoten = string.find(content,"<BR><HR><H4>Fußnoten</H4>")
|
||||||
startoffset = string.find(content,"</DL>\n<BR><HR>",fussnoten)
|
startoffset = string.find(content,"</DL>",fussnoten)
|
||||||
endoffset = startoffset + len("</DL>\n<BR><HR>")
|
endoffset = startoffset + len("</DL>")
|
||||||
content = content[:startoffset] + "</DL>\n</div>" + content[endoffset:]
|
content = content[:startoffset] + "</DL>\n</div>" + content[endoffset:]
|
||||||
|
|
||||||
# Linie vor Fussnoten wird entfernt
|
# Linie vor Fussnoten wird entfernt
|
||||||
|
|
Loading…
Add table
Reference in a new issue