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/03103800.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/03103800.xhp')
-rw-r--r-- | source/text/sbasic/shared/03103800.xhp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/text/sbasic/shared/03103800.xhp b/source/text/sbasic/shared/03103800.xhp index cddd83b010..0cc73dfcdc 100644 --- a/source/text/sbasic/shared/03103800.xhp +++ b/source/text/sbasic/shared/03103800.xhp @@ -54,11 +54,11 @@ <paragraph role="paragraph" id="par_id3153104" xml-lang="en-US">"TextEdit1" to "TextEdit5" in a loop to create five control names.</paragraph> </section> <paragraph role="paragraph" id="par_id3150767" xml-lang="en-US">See also: <link href="text/sbasic/shared/03103900.xhp">FindPropertyObject</link></paragraph> -<paragraph role="heading" id="hd_id3150868" xml-lang="en-US" level="2">Syntax:</paragraph> +<h2 id="hd_id3150868">Syntax:</h2> <bascode> <paragraph role="bascode" id="par_id3151042" localize="false" xml-lang="en-US">FindObject( ObjName As String )</paragraph> </bascode> -<paragraph role="heading" id="hd_id3159254" xml-lang="en-US" level="2">Parameters:</paragraph> +<h2 id="hd_id3159254">Parameters:</h2> <paragraph role="paragraph" id="par_id3150439" xml-lang="en-US"> <emph>ObjName: </emph>String that specifies the name of the object that you want to address at run-time.</paragraph> <embed href="text/sbasic/shared/00000003.xhp#errorcode"/> |