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 BUG: 290091
Showing
- filters/libmsooxml/MsooXmlCommonReaderDrawingMLImpl.h 2 additions, 2 deletionsfilters/libmsooxml/MsooXmlCommonReaderDrawingMLImpl.h
- filters/words/docx/DocxXmlDocumentReader.cpp 2 additions, 2 deletionsfilters/words/docx/DocxXmlDocumentReader.cpp
- libs/flake/KoShapeRegistry.cpp 28 additions, 20 deletionslibs/flake/KoShapeRegistry.cpp
- libs/kotext/opendocument/KoTextLoader.cpp 21 additions, 3 deletionslibs/kotext/opendocument/KoTextLoader.cpp
- libs/odf/KoXmlReader.h 1 addition, 1 deletionlibs/odf/KoXmlReader.h
- libs/odf/KoXmlWriter.cpp 1 addition, 0 deletionslibs/odf/KoXmlWriter.cpp
Loading
Please register or sign in to comment