Merge pull request #22 from winterheart/whitespaces
Added whitespace handling in cell but unit test will be fixed next
This commit is contained in:
commit
ffce4b26a2
|
@ -24,6 +24,7 @@
|
|||
# Thanks to grt for the fixes
|
||||
import math
|
||||
|
||||
from odf import teletype
|
||||
from odf.table import TableRow, TableCell, Table
|
||||
from odf.text import P
|
||||
from odf.namespaces import OFFICENS
|
||||
|
@ -87,7 +88,7 @@ class ODSSheet(SheetReader):
|
|||
|
||||
def __read_text_cell(self, cell):
|
||||
text_content = []
|
||||
paragraphs = cell.getElementsByType(P)
|
||||
paragraphs = teletype.extractText(cell.getElementsByType(P))
|
||||
# for each text node
|
||||
for paragraph in paragraphs:
|
||||
data = ''
|
||||
|
|
Loading…
Reference in New Issue