summaryrefslogtreecommitdiff
path: root/source/text/swriter/01/04120217.xhp
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2023-03-13 16:04:19 +0100
committerOlivier Hallot <olivier.hallot@libreoffice.org>2023-03-16 15:18:10 +0000
commit77cb682cd1b004e7247560e60f603a4bb0565b8d (patch)
tree5ff7d8bf5fcc8f9fe162b8ed05ca7eeaf21022ba /source/text/swriter/01/04120217.xhp
parent00567a452bb1e270dd2438dcc865359edba56c19 (diff)
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/swriter/01/04120217.xhp')
-rw-r--r--source/text/swriter/01/04120217.xhp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/text/swriter/01/04120217.xhp b/source/text/swriter/01/04120217.xhp
index c287d5f99c..7ec2977cac 100644
--- a/source/text/swriter/01/04120217.xhp
+++ b/source/text/swriter/01/04120217.xhp
@@ -38,12 +38,12 @@
<embed href="text/swriter/00/00000404.xhp#verz27"/>
</section>
<embed href="text/swriter/01/04120211.xhp#type_and_title"/>
-<paragraph role="heading" id="hd_id3148773" xml-lang="en-US" level="2">Formatting of the entries</paragraph>
+<h2 id="hd_id3148773">Formatting of the entries</h2>
<bookmark xml-lang="en-US" branch="hid/modules/swriter/ui/tocindexpage/numberentries" id="bm_id3154640" localize="false"/>
-<paragraph role="heading" id="hd_id3147167" xml-lang="en-US" level="3">Number entries</paragraph>
+<h3 id="hd_id3147167">Number entries</h3>
<paragraph role="paragraph" id="par_id3154647" xml-lang="en-US"><ahelp hid="modules/swriter/ui/tocindexpage/numberentries">Automatically numbers the bibliography entries.</ahelp> To set the sorting options for the numbering, click the <link href="text/swriter/01/04120227.xhp">Entries</link> tab.</paragraph>
<bookmark xml-lang="en-US" branch="hid/modules/swriter/ui/tocindexpage/brackets" id="bm_id3149290" localize="false"/>
-<paragraph role="heading" id="hd_id3150759" xml-lang="en-US" level="3">Brackets</paragraph>
+<h3 id="hd_id3150759">Brackets</h3>
<paragraph role="paragraph" id="par_id3149295" xml-lang="en-US"><ahelp hid="modules/swriter/ui/tocindexpage/brackets">Select the brackets used to enclose bibliography entries.</ahelp></paragraph>
<embed href="text/swriter/01/04120212.xhp#sort"/>
</body>