Created attachment 67222 [details] Document showing the problem Version: unspecified OS: Linux When loading the attached document, some of the blanks are lost. These blanks are there after a line-break. Reproducible: Didn't try Steps to Reproduce: Load the attached document Actual Results: The number of blanks in the last rows of the document is not as it should be Expected Results: The number of blanks should be as noted in the document.
Created attachment 67339 [details] Document showing the problem Updated version showing more problems of wrong whitespace handling.
Git commit 16bc36adc6a6ead69e21e98e770411a7d6a8da81 by Thorsten Zachmann. Committed on 02/01/2012 at 14:53. Pushed by zachmann into branch 'master'. Fix whitespace handling in xml loading This changes the xml loading to no longer strip whitespace. This fixes one of the problems attached to the bug report where there is a text node with only a space e.g. <text:line-break/> <text:s/>2 space. This change uncovered some problems where white space was not handled properly: anchors and line-breaks in filters, frame element loading in libs. It also fixes saving of line-break to use the correct tag instead of the QChar::LineSperator as char. Also whitespace handling after tabs, bookmark-ref and when variables are used have been fixed. REVIEW: 103568 M +2 -2 filters/libmsooxml/MsooXmlCommonReaderDrawingMLImpl.h M +2 -2 filters/words/docx/DocxXmlDocumentReader.cpp M +28 -20 libs/flake/KoShapeRegistry.cpp M +21 -3 libs/kotext/opendocument/KoTextLoader.cpp M +1 -1 libs/odf/KoXmlReader.h M +1 -0 libs/odf/KoXmlWriter.cpp http://commits.kde.org/calligra/16bc36adc6a6ead69e21e98e770411a7d6a8da81