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

            Bug ID: 103539
           Summary: Macro gives wrong result on replace all with regular
                    expression with "\n"
           Product: LibreOffice
           Version: 5.1.4.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Description:
In some cases only the first occurrence is replaced when every occurrence
should be replaced.

Steps to Reproduce:
The bug is easy to reproduce.
I give two attached files :

- A basic file to import into your macros.
In which you find two simple macros.
In fact, they are simply calling the same function with two different
arguments.
MacAAA is working correctly, but MacBBB is not : it changes only the first
occurrence.
The macros have to be run on the original file and not consecutively in order
to see the bug.

-TestFile.odt a small and simple text file on which to run macros

Actual Results:  
For MacBBB on the original file :
AAA
BBB
AAABBB
AAABBB
AAABBB
AAABBB
AAABBB
AAABBB


Expected Results:
AAA
BBB
AAA
BBB
AAA
BBB
AAA
BBB
AAA
BBB
AAA
BBB
AAA
BBB



Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101
Firefox/49.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to