summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2018-12-19 15:40:52 -0200
committerOlivier Hallot <olivier.hallot@libreoffice.org>2018-12-19 22:31:54 +0100
commite291fe7c170e994bd3cd340d86021cab9382d0a1 (patch)
treebc5f0d282c03ffb06896a4c36cee2504d1293789 /source
parentde6fdf71fa1712558c6f2b41bb0dbecb16195597 (diff)
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@libreoffice.org>
Diffstat (limited to 'source')
-rw-r--r--source/text/scalc/01/12120300.xhp13
-rw-r--r--source/text/scalc/guide/validity.xhp5
2 files changed, 11 insertions, 7 deletions
diff --git a/source/text/scalc/01/12120300.xhp b/source/text/scalc/01/12120300.xhp
index 27358b9574..771c03cc58 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: " &amp; "'" &amp; CellValue &amp; "'"<br/>msg = msg &amp; " in table: " &amp; "'" &amp; TableCell &amp; "'"<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: " &amp; "'" &amp; CellValue &amp; "'"</paragraph>
+ <paragraph role="bascode" id="par_id841545240210171" xml-lang="en-US" localize="false"> msg = msg &amp; " in table: " &amp; "'" &amp; TableCell &amp; "'"</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 979086778c..76d5eb8ec8 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>