https://bugs.documentfoundation.org/show_bug.cgi?id=94542
Bug ID: 94542
Summary: ScPostIt's GetText() replaces tabs with U+0001
Product: LibreOffice
Version: unspecified
Hardware: Other
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Calc
Assignee: [email protected]
Reporter: [email protected]
Created attachment 119065
--> https://bugs.documentfoundation.org/attachment.cgi?id=119065&action=edit
The test file which has tabs inside its comments
As the title says, GetText() replaces tab characters with:
http://www.decodeunicode.org/u+0001
This isn't obvious since when the user edits the text with the GUI, they're
able to navigate the tab characters normally (which're between A and b; and b
and c in the attached test file test).
I initially discovered this when I was trying to write a patch for the html
exporter to include the comments inside the appropriate cells. To reproduce,
simply do the following:
0. Compile libreoffice's sc module with debug symbols
1. run libreoffice through gdb
2. Set a breakpoint for ScPostIt::GetText
3. Open the sample file
4. I'm not sure which point in the GUI is GetText() called, but I know the unit
test doesn't test for plaintext with tabs.
5. Point is, when you get tot he point in GetText(), you'll see U+0001 littered
wherever tabs are.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs