https://bugs.documentfoundation.org/show_bug.cgi?id=95340
Bug ID: 95340
Summary: Search and replace macro with regular \n
Product: LibreOffice
Version: 5.0.2.2 release
Hardware: Other
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
Search and replace works not correct if executed in a macro and "\n" is in
replace field. Lets say, we have macro for Writer:
sub PDF2TXT
Dim oDocument As Object
Dim oSearch As Object
Dim oReplace As Object
Dim oResult As Object
oDocument = ThisComponent
oReplace = oDocument.createReplaceDescriptor
oReplace.searchAll=True
oReplace.SearchRegularExpression = true
oReplace.SearchCaseSensitive = false
oReplace.SearchWords = false
oReplace.SearchString = "########"
oReplace.ReplaceString = "\n"
oDocument.replaceAll(oReplace)
end sub
Expected: all ######## are replaced with new paragraph
Reality: only first or 2 firsts character strings are replaced.
Manual "Search and replace" works fine.
This bug is specific for 5.x.x, older versions worked fine.
--
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