https://bugs.documentfoundation.org/show_bug.cgi?id=75914
--- Comment #10 from sergio.calleg...@gmail.com --- Just added a document with a test case for the issue. Document foo.odt is a text document. Looks empty, but contains two macros: 1) Open the document and enable macros 2) Run macro "set_test_property". This programmatically sets a custom property in the document to the string "This is a string with a line break", with a line break between the words 'string' and 'with' 3) Test that this is the case by running the macro "print_test_property". You should see a message box with the text This is a string with a line break 4) Open the properties editor: File->Properties->Custom Properties. See that there is a "test" property. Notice how the text associated to it reads "This is a stringwith a line break". Press OK. 5) Run again the macro "print_test_property". Now, you see a message box with the text This is a stringwith a line break This proves that opening the properties editor has broken the custom property by removing the line break. Now, to the best of my understanding, the odf standard enables line breaks and other special chars in custom properties, namely: #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] (any Unicode character, excluding the surrogate blocks, FFFE, and FFFF). Hence, the document properties editor should not break properties containing any of these chars, otherwise it may end up breaking macros and extensions that rely on setting these properties. -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs