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

            Bug ID: 100941
           Summary: LibreLogo: "magic wand" icon inserts incollect '\n'
                    characters instead of paragraph breaks
           Product: LibreOffice
           Version: 5.2.0.1 rc
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Step to reproduce.

1) create new Writer file
2) "Edit" > "Search and Replace" > "Other options", check off "Regular
expression" 
3) type:
----
fd 100
rt 90
----
4) click "magic wand" icon

Expected.
----
FORWARD 100
RIGHT 90
----

Actual.
----
\nFORWARD 100\nRIGHT 90
----


NOTE:

1) If "Regular expression" in "Search and Replace" checked, works fine
2) The problems seems the following pyuno code(LibreLogo.py: L394-397) change a
behavior by UI settings:
----
    # convert to paragraphs
    __dispatcher__(".uno:ExecuteSearch",
(__getprop__("SearchItem.SearchString", r"\n"),
__getprop__("SearchItem.ReplaceString", r"\n"), \
        __getprop__("Quiet", True), __getprop__("SearchItem.Command", 3),
__getprop__("SearchItem.StyleFamily", 2), \
        __getprop__("SearchItem.AlgorithmType", 1),
__getprop__("SearchItem.RowDirection", 1),
__getprop__("SearchItem.SearchFlags", 65536)))
----

-- 
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