[Libreoffice-bugs] [Bug 104902] unable to display chr(10) or chr(13) in a cell in calc when inserted by a macro

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Sep 22 00:38:44 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=104902

--- Comment #7 from himajin100000 at gmail.com ---
Just a guess:

probably cell content is displayed as Rich Text, While Formula bar is for
normal string.

When Enter Key is manually pressed with Shift key pressed, InsertLineBreak is
executed. 

https://opengrok.libreoffice.org/xref/core/editeng/source/editeng/editeng.cxx?r=39214c54#1233

this sets special attribute EE_FEATURE_LINEBR

https://opengrok.libreoffice.org/xref/core/editeng/source/editeng/impedit2.cxx?r=39214c54#3031

https://opengrok.libreoffice.org/xref/core/editeng/source/editeng/editdoc.cxx?r=39214c54#345

and later this will be used to create lines.

https://opengrok.libreoffice.org/xref/core/editeng/source/editeng/impedit3.cxx?r=bb748ba4#1025

CreateLines is called from FormatDoc
https://opengrok.libreoffice.org/xref/core/vcl/source/edit/texteng.cxx?r=73e3604f#1514

and FormatDoc is called from TextEngine::ImpPaint
https://opengrok.libreoffice.org/xref/core/vcl/source/edit/texteng.cxx?r=73e3604f#1881

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190922/33e670a1/attachment-0001.html>


More information about the Libreoffice-bugs mailing list