From 88cbe40b89135cf101d340388b0be25742ff24d7 Mon Sep 17 00:00:00 2001 From: phil Date: Thu, 15 Jun 2006 12:45:24 +0000 Subject: [PATCH] * html von unnoetigen tags befreit --- documents/mod_html_files.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/documents/mod_html_files.py b/documents/mod_html_files.py index f83b4ff..c8837b4 100644 --- a/documents/mod_html_files.py +++ b/documents/mod_html_files.py @@ -40,7 +40,7 @@ try: content=string.replace(content,footer,"") #put whole content into div tags - content = string.replace(content,"",'') + content = string.replace(content,"

\n\n",'') content = string.replace(content,"",'') #remove empty image subtitles @@ -52,8 +52,8 @@ try: # Fussnoten finden und Ende ersetzen fussnoten = string.find(content,"

Fußnoten

") - startoffset = string.find(content,"\n

",fussnoten) - endoffset = startoffset + len("\n

") + startoffset = string.find(content,"",fussnoten) + endoffset = startoffset + len("") content = content[:startoffset] + "\n" + content[endoffset:] # Linie vor Fussnoten wird entfernt