- Notifications
You must be signed in to change notification settings - Fork1.9k
add xml:space="preserve" for all whitespaces#896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Currently only spaces at begin or end of a text add the xml:space attribute. So at the moment comments with newlines can nott be added.
@sebikeller could I ask you to write a test that covers this change? |
@sebikeller - I've just tried adding some integration tests to master that add white spaces to values and notes at beginning and endings of multiple lines and I can't reproduce your problem. |
sebikeller commentedOct 16, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I agree, with an integration test, its not possible to reproduce the problem. But if you open the generated file with excel, you'll see the difference. branch masterapplied pr |
sebikeller commentedOct 17, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Recreating the file in excel, following xml can be extracted: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><commentsxmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"> <authors>...</authors> <commentList> <commentref="A1"authorId="0"shapeId="0"> <text> <r> <rPr> <b/> </rPr> <t>First Line:</t> </r> <r> <txml:space="preserve"></t> </r> <r> <txml:space="preserve">Second Line</t> </r> <r> <txml:space="preserve">Third Line</t> </r> <r> <t>Last Line</t> </r> </text> </comment> </commentList></comments> |
Since we cant recreate it with an integration test, it actually means, that the exceljs parser has difference with that of excel. |
@sebikeller - agreed! I'll add a unit test on the strings xforms to keep a check on this... |
Uh oh!
There was an error while loading.Please reload this page.
Currently only spaces at begin or end of a text add the xml:space attribute.
So at the moment comments with newlines can not be added.