Apache OpenOffice (AOO) Bugzilla – Issue 23396
API: sw.SwXTextCursor::XSentenceCursor
Last modified: 2013-02-24 21:08:47 UTC
The method isEndOfSentence() returns false even if one used the method gotoEndOfSentence previously. To reproduce this behaviour execute the following macro. oDoc = ThisComponent oText = oDoc.Text oCursor = oText.createTextCursor() oCursor.setString("Just a little sentence") oText.insertControlCharacter(oCursor, com.sun.star.text.ControlCharacter.PARAGRAPH_BREAK, false) oText.insertControlCharacter(oCursor, com.sun.star.text.ControlCharacter.LINE_BREAK, false) oCursor.gotoStartOfSentence(false) print oCursor.isStartOfSentence() oCursor.gotoEndOfSentence(false) print oCursor.isEndOfSentence()
.
tl/cn: office later