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

            Bug ID: 103132
           Summary: Linebreaks are artificailly added when executing
                    __translate__() via the menu button
           Product: LibreOffice
           Version: 5.1.5.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Extensions
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: a...@gno.de

Created attachment 127952
  --> https://bugs.documentfoundation.org/attachment.cgi?id=127952&action=edit
Modified LibreLogo.py

When executing __translate__() in LibreLogo.py via the LibreLogo 
"Wizard"-menu button 

Linebreaks are artificailly added to the Logo source code.

resonsible lines in __translate__() seem to be

395:# convert to paragraphs
396: _dispatcher__(".uno:ExecuteSearch",
(__getprop__("SearchItem.SearchString", r"\n"),
__getprop__("SearchItem.ReplaceString", "\n"), \


removing the last '\n':
396: _dispatcher__(".uno:ExecuteSearch",
(__getprop__("SearchItem.SearchString", r"\n"),
__getprop__("SearchItem.ReplaceString", ""), \

removes the 'added' linebraks.

But then __translate__() does not add a page break as before.

The compact source code of LibreLogo.py make it a bit hard to trace the
problem.

Could you pleas contact the author??

Thanks

  Andreas

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

Reply via email to