Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index


たびたびすみません、小笠原です。

--- LibreLogo.py.bak    2016-07-15 19:39:37.899261161 +0900
+++ LibreLogo.py        2016-07-16 09:04:24.266613713 +0900
@@ -392,7 +392,7 @@
         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", "\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)))
     # set 2-page layout


このパッチ、やっぱり改行→改段落がうまくいってなくてダメですね。
そして色々調べていたら、すごいことに気づきました。

UIの「検索と置換」の「他のオプション」で「正規表現」をオンにする
と動きます……。
pyunoによるAPIコールがUIのオプションの影響を受けるのはマズイ
ので、思ったより影響範囲が大きい問題かも、と思いつつも、まずは
LibreLogoの問題としてレポートしました。

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

では。

-- 
Unsubscribe instructions: E-mail to discuss+unsubscribe@ja.libreoffice.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/ja/discuss/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.