source/text/sbasic/python/main0000.xhp |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 35cef5c7256129d3d21f31cc0903c977f8de9cf6
Author:     Olivier Hallot <olivier.hal...@libreoffice.org>
AuthorDate: Tue Oct 15 09:37:23 2019 -0300
Commit:     Olivier Hallot <olivier.hal...@libreoffice.org>
CommitDate: Tue Oct 15 15:54:41 2019 +0200

    Restrict warning to sys=UNIX
    
    Warning applies only to UNIX like systems
    
    Change-Id: I1fe93eef298bb7f3f00d0318edb4413672e93d1f
    Reviewed-on: https://gerrit.libreoffice.org/80831
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hal...@libreoffice.org>

diff --git a/source/text/sbasic/python/main0000.xhp 
b/source/text/sbasic/python/main0000.xhp
index 5faefe428..867cd1ad4 100644
--- a/source/text/sbasic/python/main0000.xhp
+++ b/source/text/sbasic/python/main0000.xhp
@@ -28,7 +28,11 @@
     </section>
     <h2 id="hd_id3146957">Working with Python Scripts in %PRODUCTNAME</h2>
     <paragraph role="paragraph" id="N0102">You can execute Python scripts 
choosing <menuitem>Tools - Macros - Run Macro</menuitem>. Editing scripts can 
be done with your preferred text editor. Python scripts are present in various 
locations detailed hereafter. You can refer to Programming examples for macros 
illustrating how to run the Python interactive console from 
%PRODUCTNAME.</paragraph>
-    <warning id="par_id131568902936659">The %PRODUCTNAME scripting framework 
for Python is optional on some GNU/Linux distributions. If it is installed, 
selecting <menuitem>Tools – Macros - Run  Macro...</menuitem> and checking 
<literal>%PRODUCTNAME Macros</literal> for the presence of <literal>HelloWorld 
– HelloWorldPython</literal> macro is sufficient. If absent, please refer to 
your distribution documentation in order to install the %PRODUCTNAME scripting 
framework for Python.</warning>
+    <switch select="sys">
+        <case select="UNIX">
+            <warning id="par_id131568902936659">The %PRODUCTNAME scripting 
framework for Python is optional on some GNU/Linux distributions. If it is 
installed, selecting <menuitem>Tools - Macros - Run Macro...</menuitem> and 
checking <literal>%PRODUCTNAME Macros</literal> for the presence of 
<literal>HelloWorld – HelloWorldPython</literal> macro is sufficient. If 
absent, please refer to your distribution documentation in order to install the 
%PRODUCTNAME scripting framework for Python.</warning>
+        </case>
+    </switch>
     <embed href="text/shared/guide/scripting.xhp#scripting"/>
     <embed href="text/sbasic/python/python_ide.xhp#pythonideh1"/>
     <embed href="text/sbasic/python/python_locations.xhp#pythonlocations1"/>
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to