diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2023-03-13 16:04:19 +0100 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2023-03-16 15:18:10 +0000 |
commit | 77cb682cd1b004e7247560e60f603a4bb0565b8d (patch) | |
tree | 5ff7d8bf5fcc8f9fe162b8ed05ca7eeaf21022ba /source/text/sbasic/shared/03030104.xhp | |
parent | convert plain paragraphs with role="heading" → h<level> (localize="false") (diff) | |
download | help-77cb682cd1b004e7247560e60f603a4bb0565b8d.tar.gz help-77cb682cd1b004e7247560e60f603a4bb0565b8d.zip |
convert plain paragraphs with role="heading" → h<level>
i.e. without child elements and also drop the language that was changed
to implied in the dtd previously/defaults to en-US unless specified.
This change doesn't affect translations, only the content of the
paragraph/headings is extracted.
done with:
perl -CSD -pi -e 'BEGIN {$base = qr/role="heading"|level="(?<level>\d+)"|(?<id>id="[^"]+")/;} s#<paragraph(((\s+($base)){3})|(\s+($base|xml-lang="en-US")){4})>(?<body>[^<]+)</paragraph>#<h$+{level} $+{id}>$+{body}</h$+{level}>#g'
(all permutations re order of attributes, and xml-lang="en-US" being
optional / implied)
Change-Id: I365a2bb983a3969af9390753fce7b7f3597c7b8b
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148795
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'source/text/sbasic/shared/03030104.xhp')
-rw-r--r-- | source/text/sbasic/shared/03030104.xhp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/text/sbasic/shared/03030104.xhp b/source/text/sbasic/shared/03030104.xhp index b1d523ce05..c89e726cab 100644 --- a/source/text/sbasic/shared/03030104.xhp +++ b/source/text/sbasic/shared/03030104.xhp @@ -35,13 +35,13 @@ <paragraph role="heading" id="hd_id3153127" xml-lang="en-US" level="1"><link href="text/sbasic/shared/03030104.xhp">Month Function</link></paragraph> <paragraph role="paragraph" id="par_id3148550" xml-lang="en-US">Returns the month of a year from a serial date that is generated by the DateSerial or the DateValue function.</paragraph> </section> -<paragraph role="heading" id="hd_id3145068" xml-lang="en-US" level="2">Syntax:</paragraph> +<h2 id="hd_id3145068">Syntax:</h2> <bascode> <paragraph role="bascode" id="par_id3150398" xml-lang="en-US">Month (Number)</paragraph> </bascode> -<paragraph role="heading" id="hd_id3154366" xml-lang="en-US" level="2">Return value:</paragraph> +<h2 id="hd_id3154366">Return value:</h2> <paragraph role="paragraph" id="par_id3154125" xml-lang="en-US">Integer</paragraph> -<paragraph role="heading" id="hd_id3150768" xml-lang="en-US" level="2">Parameters:</paragraph> +<h2 id="hd_id3150768">Parameters:</h2> <paragraph role="paragraph" id="par_id3156423" xml-lang="en-US"> <emph>Number:</emph> Numeric expression that contains the serial date number that is used to determine the month of the year.</paragraph> <paragraph role="paragraph" id="par_id3153770" xml-lang="en-US">This function is the opposite of the <emph>DateSerial </emph>function. It returns the month in the year that corresponds to the serial date that is generated by <emph>DateSerial</emph> or <emph>DateValue</emph>. For example, the expression</paragraph> @@ -51,7 +51,7 @@ <paragraph role="paragraph" id="par_id3145366" xml-lang="en-US">returns the value 12.</paragraph> <embed href="text/sbasic/shared/00000003.xhp#errorcode"/> <embed href="text/sbasic/shared/00000003.xhp#err5"/> -<paragraph role="heading" id="hd_id3146923" xml-lang="en-US" level="2">Example:</paragraph> +<h2 id="hd_id3146923">Example:</h2> <bascode> <paragraph role="bascode" id="par_id3156442" xml-lang="en-US" localize="false">Sub ExampleMonth</paragraph> <paragraph role="bascode" id="par_id3149664" xml-lang="en-US"> MsgBox "" & Month(Now) ,64,"The current month"</paragraph> |