summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibreOfficiant <OpenOfficiant@sfr.fr>2019-02-06 10:45:46 +0100
committerOlivier Hallot <olivier.hallot@libreoffice.org>2019-02-06 12:44:07 +0100
commite3a09f8bc5c2276f3484a891b18b7da615160acb (patch)
treee889ff2a744544cc4ae6591dd0c9636716ab191b
parente3dd1cb6d3b006c7db6e28e702f86ee229f2e301 (diff)
Improve scripts legibility for Python newbies
Change-Id: I6adee2c58d4030c433a9fdf0c070069264564742 Reviewed-on: https://gerrit.libreoffice.org/67439 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
-rw-r--r--source/text/sbasic/python/python_programming.xhp2
-rw-r--r--source/text/sbasic/python/python_session.xhp2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/text/sbasic/python/python_programming.xhp b/source/text/sbasic/python/python_programming.xhp
index a513c684c7..fe357bd220 100644
--- a/source/text/sbasic/python/python_programming.xhp
+++ b/source/text/sbasic/python/python_programming.xhp
@@ -291,7 +291,7 @@
<paragraph role="pycode" id="N0316"> ui = load_library(&quot;my_gui&quot;,&apos;screen_io&apos;) # add &lt;lib&gt; path + import &lt;module&gt; </paragraph>
<paragraph role="pycode" localize="false" id="N0317"> ui.MsgBox(sys.modules.keys())</paragraph>
<paragraph role="pycode" localize="false" id="N0314"></paragraph>
- <paragraph role="pycode" localize="false" id="N0319">g_exportedScripts = import_embedded_python, # Public macros</paragraph>
+ <paragraph role="pycode" localize="false" id="N0319">g_exportedScripts = (import_embedded_python,) # Public macros</paragraph>
</pycode>
</section>
<section id="relatedtopics">
diff --git a/source/text/sbasic/python/python_session.xhp b/source/text/sbasic/python/python_session.xhp
index e6a49c91eb..5ee5c55f4e 100644
--- a/source/text/sbasic/python/python_session.xhp
+++ b/source/text/sbasic/python/python_session.xhp
@@ -43,7 +43,7 @@
<paragraph role="pycode" xml-lang="en-US" id="N0357"> ui.MsgBox(s.UserName,title=&apos;Hello&apos;) # object property</paragraph>
<paragraph role="pycode" xml-lang="en-US" id="N0358"> ui.Print(s.UserPythonScripts) # object property</paragraph>
<paragraph role="pycode" localize="false" id="N0359"> </paragraph>
- <paragraph role="pycode" xml-lang="en-US" id="N0360">g_exportedScripts = demo_session, # public macros</paragraph>
+ <paragraph role="pycode" xml-lang="en-US" id="N0360">g_exportedScripts = (demo_session,) # public macros</paragraph>
</pycode>
<h3 id="N0361">With %PRODUCTNAME Basic.</h3>
<bascode>