diff --git a/documents/Makefile b/documents/Makefile
index 09920ef..024edbb 100644
--- a/documents/Makefile
+++ b/documents/Makefile
@@ -97,7 +97,7 @@ $(TEX_FILES): $(LYX_FILES)
# original html-files, as they are created by lyx
-$(EXPORT_DIRS): $(TEX_FILES) $(INC_FILES) footer.asc
+$(EXPORT_DIRS): $(TEX_FILES) $(INC_FILES) footer.asc mod_html_files.py
-test -d "$@" && rm -rf "$@"
mkdir -p "$@"
latex2html $(LATEX2HTML_OPTS) -dir "$@" $(dir $@)/$(patsubst export-%,%.tex,$(notdir $@))
diff --git a/documents/mod_html_files.py b/documents/mod_html_files.py
index eb83478..c297fa9 100644
--- a/documents/mod_html_files.py
+++ b/documents/mod_html_files.py
@@ -33,7 +33,7 @@ try:
# zu_manipulierende_variable=string.replace(zu_manipulierende_variable,alter_string,neuer_string)
# recently switched to latex2html, now cutting of headers
- # dieser abschnitt muss ueberarbeitet werden!
+ # TODO: dieser abschnitt muss ueberarbeitet werden!
startoffset=string.find(content,"
\n")
endoffset=string.find(content,"",startoffset)+len("")
if (startoffset >10) and (endoffset>startoffset):
@@ -51,11 +51,11 @@ try:
startoffset=string.find(content,'",startoffset)+len("")
if (startoffset >10) and (endoffset>startoffset):
- content=string.replace(content,'
',"
")
+ content=string.replace(content,'
',"
")
content=string.replace(content,"","")
content=string.replace(content,"","")
- #TOC formatieren - Der Abschnitt muss noch allgemeiner werden
+ #TODO: TOC formatieren - Der Abschnitt muss noch allgemeiner werden
content = string.replace(content,'
\n\n\n','\n\n
Auf dieser Seite:
')
content = string.replace(content,"","
")
@@ -63,6 +63,18 @@ try:
# (this avoids validation warnings)
content = string.replace(content,'HREF="./','HREF="')
+ # die Stylesheet-Einbindung von latex2html ist nicht standardkonform
+ # ein Bug-Report ging an die l2html-Mailingliste (29.12.02006)
+ content = string.replace(content, '\n', '\n')
+ content = string.replace(content, '\n\n\n', '\n')
+ content = string.replace(content, '\n\n
\n', '\n')
+ # leere Absaetze in Tabellenelementen entfernen
+ content = string.replace(content, '\n
', '\n')
+
+
# Fussnoten finden und Ende ersetzen
fussnoten = string.find(content,"
Fußnoten
")
startoffset = string.find(content,"",fussnoten)
@@ -99,7 +111,7 @@ try:
writeFile(content,sys.argv[1])
except: #read/write/whatever failed,
- # BOESE: unklare Fehlerbehandlung
+ # TODO: unklare Fehlerbehandlung
print "an defined error occured - but i'm too lame to fix that"
print "usage:",sys.argv[0],""
sys.exit(1)