summaryrefslogtreecommitdiff
path: root/librelogo
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-07-17 00:03:34 +0900
committerCaolán McNamara <caolanm@redhat.com>2016-07-19 07:12:13 +0000
commit3f2c389abadd5af629d89f96909a98cc04e7679c (patch)
tree62d778a465a25e66cc610c66b9af31b0fb7196b2 /librelogo
parent208eea3f99cf9742abd2d76ba615b07240fac664 (diff)
Resolves: tdf#100941 LibreLogo: replace literal '\n' with newline
by simple SearchAlgorithms2's ABSOLUTE(=1), rather than using SearchAlgorithms' REGEXP(=1). BTW avoid RowDirection because it is for Calc only. Change-Id: I50ab460110ed43befb3e378e94f4fda0f2777f4d Reviewed-on: https://gerrit.libreoffice.org/27250 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit b1a6d157683b8182089ed5854179c8da8c416304) Reviewed-on: https://gerrit.libreoffice.org/27282 (cherry picked from commit 3881ea57892b78dcbc52d46a22616ac72bd4c335) Reviewed-on: https://gerrit.libreoffice.org/27307
Diffstat (limited to 'librelogo')
-rw-r--r--librelogo/source/LibreLogo/LibreLogo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/librelogo/source/LibreLogo/LibreLogo.py b/librelogo/source/LibreLogo/LibreLogo.py
index 0f21c36f35d3..b7077e107668 100644
--- a/librelogo/source/LibreLogo/LibreLogo.py
+++ b/librelogo/source/LibreLogo/LibreLogo.py
@@ -392,9 +392,9 @@ def __translate__(arg = None):
pagebreak = False
selection.setString(text)
# convert to paragraphs
- __dispatcher__(".uno:ExecuteSearch", (__getprop__("SearchItem.SearchString", r"\n"), __getprop__("SearchItem.ReplaceString", r"\n"), \
+ __dispatcher__(".uno:ExecuteSearch", (__getprop__("SearchItem.SearchString", r"\n"), __getprop__("SearchItem.ReplaceString", "\n"), \
__getprop__("Quiet", True), __getprop__("SearchItem.Command", 3), __getprop__("SearchItem.StyleFamily", 2), \
- __getprop__("SearchItem.AlgorithmType", 1), __getprop__("SearchItem.RowDirection", 1), __getprop__("SearchItem.SearchFlags", 65536)))
+ __getprop__("SearchItem.AlgorithmType2", 1), __getprop__("SearchItem.SearchFlags", 0)))
# set 2-page layout
if pagebreak:
selection.getStart().BreakType = 4