eea / odfpy

API for OpenDocument in Python
GNU General Public License v2.0
308 stars 63 forks source link

preserve whitespace when parsing an xml #53

Closed joostvanzwieten closed 7 years ago

joostvanzwieten commented 7 years ago

Documents containing <text:span> </text:span> are parsed as <text:span></text:span>. This commit fixes parsing by preserving all whitespace. See also #52.

icemac commented 7 years ago

Thank you for your PR. I'd like to see that the tests still pass. So I submitted #54.

joostvanzwieten commented 7 years ago

Ah, I missed the tests. I've added a commit that fixes one test. I think the other two failing tests should be updated.