Files
help/source/text/sbasic/shared
Christian Lohmaier 77cb682cd1 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>
2023-03-16 15:18:10 +00:00
..
2022-12-20 11:13:59 +00:00
2022-12-20 11:13:59 +00:00
2023-02-20 10:04:01 +00:00
2022-12-09 23:08:02 +00:00
2020-04-17 20:34:57 +02:00
2020-10-09 18:02:44 +02:00
2020-04-17 20:34:57 +02:00
2022-12-10 13:46:35 +00:00
2022-12-15 10:46:48 +00:00
2023-02-17 15:43:21 +00:00
2023-01-09 00:53:36 +00:00