Commit 5318d7b4 authored by Andreas Jung's avatar Andreas Jung

leading and trailing spaces of texts inside tags are removed

(introduced with STXNG)
parent 7ee3ae77
......@@ -83,7 +83,7 @@
#
##############################################################################
from string import join, split, find
from string import join, split, find, strip
from cgi import escape
import re, sys, ST
......@@ -124,7 +124,7 @@ class HTMLClass:
return join(r,'')
def _text(self, doc, level, output):
output(doc.getNodeValue())
output(strip(doc.getNodeValue()))
def document(self, doc, level, output):
children=doc.getChildNodes()
......
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