normalize whitespace
This commit is contained in:
parent
e6a951b83e
commit
8687245e27
|
@ -1382,12 +1382,10 @@ class TreeBuilder:
|
|||
self._last.text = text
|
||||
self._data = []
|
||||
|
||||
|
||||
def data(self, data):
|
||||
"""Add text to current element."""
|
||||
self._data.append(data)
|
||||
|
||||
|
||||
def start(self, tag, attrs):
|
||||
"""Open new element and return it.
|
||||
|
||||
|
@ -1403,7 +1401,6 @@ class TreeBuilder:
|
|||
self._tail = 0
|
||||
return elem
|
||||
|
||||
|
||||
def end(self, tag):
|
||||
"""Close and return current Element.
|
||||
|
||||
|
@ -1681,4 +1678,3 @@ try:
|
|||
source.close()
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in New Issue