Apache OpenOffice (AOO) Bugzilla – Issue 19758
API: sw.SwXBodyText::com::sun::star::text::XSimpleText::insertString()
Last modified: 2013-02-24 21:10:14 UTC
It is not possible to insert control character "return" and "tab" as described in IDL. To reproduce please append the following macro to a text document. Sub Main oDoc = ThisComponent oText = oDoc.getText() oText.insertString(oText.createTextCursor(),"Now comes a LF:" + chr(10) +_ "Now comes a RT:" + chr(13) + "Now comes tab:" + chr(11) + "end of tab." +_ " Now comes a space:'" + chr(32) + "'end of space.",false) End Sub
Summray changed
*** Issue 19732 has been marked as a duplicate of this issue. ***
.
Tab is character 9... I.e. everything OK but for the CR. oDoc = ThisComponent oText = oDoc.getText() oText.insertString(oText.createTextCursor(),"Now comes a LF:" + chr(10) +_ "Now comes a CR:" + chr(13) + "Now comes TAB:" + chr(09) + "end of tab." +_ "Now comes a SPC:'" + chr(32) + "'end of space.",false)
SwXTextRange::setString also affected.
Fixed in CWS tlapi1. Files changed: - unoobj2.cxx 1.38.24.1 - unotext.cxx 1.22.226.1
ok in tlapi1
tested in src680_m17