Commit e67aa99a authored by Andreas Jung's avatar Andreas Jung

another small bugfix

parent bfce899d
......@@ -154,13 +154,15 @@ def spacestrip(txt):
We need this to workaround a nasty bug in STXNG.
STXNG creates empty <pre>..</pre> when then text start
if a level > 1
if a level > 1. This fix is lame. The problem should be fixed
inside STXNG
"""
l = []
for x in string.split(txt,"\n"):
if len(x)>2 and x[:2]==' ':
l.append(x[2:])
else: l.append(x)
return string.join(l,'\n')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment