[Libreoffice-commits] help.git: source/text

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Dec 19 21:32:14 UTC 2018


 source/text/scalc/01/12120300.xhp    |   13 +++++++++----
 source/text/scalc/guide/validity.xhp |    5 ++---
 2 files changed, 11 insertions(+), 7 deletions(-)

New commits:
commit e291fe7c170e994bd3cd340d86021cab9382d0a1
Author:     Olivier Hallot <olivier.hallot at libreoffice.org>
AuthorDate: Wed Dec 19 15:40:52 2018 -0200
Commit:     Olivier Hallot <olivier.hallot at libreoffice.org>
CommitDate: Wed Dec 19 22:31:54 2018 +0100

    Fix code formatting in validity help pages
    
    Change-Id: I9b0558bb805512c98223eaf2305d37861e10c82c
    Reviewed-on: https://gerrit.libreoffice.org/65458
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot at libreoffice.org>

diff --git a/source/text/scalc/01/12120300.xhp b/source/text/scalc/01/12120300.xhp
index 27358b957..771c03cc5 100644
--- a/source/text/scalc/01/12120300.xhp
+++ b/source/text/scalc/01/12120300.xhp
@@ -58,10 +58,15 @@
 <paragraph role="heading" id="hd_id3154510" xml-lang="en-US" level="3">Error message</paragraph>
 <paragraph role="paragraph" id="par_id3149122" xml-lang="en-US"><ahelp hid="modules/scalc/ui/erroralerttabpage/errorMsg">Enter the message that you want to display when invalid data is entered in a cell.</ahelp></paragraph>
 <section id="examplemakro">
-<paragraph role="paragraph" id="par_id3150752" xml-lang="en-US">
-<emph>Sample macro:</emph>
-</paragraph>
-<paragraph role="code" id="par_id5303635" xml-lang="en-US" localize="false">Function ExampleValidity(CellValue as String, TableCell as String)<br/>Dim msg as string<br/>msg = "Invalid value: " & "'" & CellValue & "'"<br/>msg = msg & " in table: " & "'" & TableCell & "'"<br/>MsgBox msg ,16,"Error message"<br/>End Function</paragraph>
+<h3 id="hd_id881545240342781">Sample macro:</h3>
+<bascode>
+    <paragraph role="bascode" id="par_id31545240174027" xml-lang="en-US" localize="false">Function ExampleValidity(CellValue as String, TableCell as String)</paragraph>
+    <paragraph role="bascode" id="par_id341545240202382" xml-lang="en-US" localize="false">    Dim msg as string</paragraph>
+    <paragraph role="bascode" id="par_id11545240206618" xml-lang="en-US" localize="false">    msg = "Invalid value: " & "'" & CellValue & "'"</paragraph>
+    <paragraph role="bascode" id="par_id841545240210171" xml-lang="en-US" localize="false">    msg = msg & " in table: " & "'" & TableCell & "'"</paragraph>
+    <paragraph role="bascode" id="par_id531545240216611" xml-lang="en-US" localize="false">    MsgBox msg ,16,"Error message"</paragraph>
+    <paragraph role="bascode" id="par_id971545240220293" xml-lang="en-US" localize="false">End Function</paragraph>
+</bascode>
 </section>
 </body>
 </helpdocument>
diff --git a/source/text/scalc/guide/validity.xhp b/source/text/scalc/guide/validity.xhp
index 979086778..76d5eb8ec 100644
--- a/source/text/scalc/guide/validity.xhp
+++ b/source/text/scalc/guide/validity.xhp
@@ -19,7 +19,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  -->
 
-	
+
 <helpdocument version="1.0">
 <meta>
 <topic id="textscalcguidevalidityxml" indexer="include" status="PUBLISH">
@@ -84,8 +84,7 @@
 <paragraph role="listitem" id="par_id3149947" xml-lang="en-US">If you select "Macro", then by using the <emph>Browse</emph> button you can specify a macro to be run in the event of an error.</paragraph>
 </listitem>
 </list>
-<paragraph role="paragraph" id="par_id3149011" xml-lang="en-US">To display the error message, select <emph>Show error message when invalid values are entered</emph>. </paragraph>
-<embed href="text/scalc/01/12120300.xhp#examplemakro"/>
+<paragraph role="paragraph" id="par_id3149011" xml-lang="en-US">To display the error message, select <link href="text/scalc/01/12120300.xhp" name="erroralert">Show error message when invalid values are entered</link>.</paragraph>
 <paragraph role="note" id="par_id3148586" xml-lang="en-US">After changing the action for a cell on the <emph>Error Alert</emph> tab page and closing the dialog with OK, you must first select another cell before the change takes effect.</paragraph>
 <section id="relatedtopics">
 <paragraph role="paragraph" id="par_id3154805" xml-lang="en-US"><link href="text/scalc/01/12120000.xhp" name="Data - Validity">Data - Validity</link></paragraph>


More information about the Libreoffice-commits mailing list