summaryrefslogtreecommitdiff
path: root/source/text/swriter/main0110.xhp
diff options
context:
space:
mode:
authorIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2022-12-06 14:05:20 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2022-12-07 17:39:02 +0000
commit7e42394ecbf921ee53160b495aa12c1cba158604 (patch)
tree9f0b4dcbbf31112c0260a6a6831cbddf86d82c6d /source/text/swriter/main0110.xhp
parent490d42493e8dbec31ad58978df5084b080a36fcb (diff)
tdf#152323 drop name attribute from <link> elements
Replacement done with find . -name \*.xhp -print0 |xargs -0 -P 0 perl -CS -pi -e \ 's#(<link[^>]*?) +name *="[^"]*" *( [^>]+|) *>#$1$2>#g' (note some inconsistencies with space between name and = and also having empty value, and some more complicated expression to also clear up double space before/after the attribute) translation files will be prepped with: find */helpcontent2 -name \*.po -print0 |xargs -0 -P 0 perl -CS -pi -e \ $'s#(<link[^>]*?) +name=(?:\\\\"[^"]*\\\\"|\'[^\']*\') *( [^>]+|) *(/?>)#$1$2$3#g unless /^#/' (note that not all languages use the " as quote character for the attributes, but that also single quotes appera in the po file. Hence the use of the shell $'string' syntax to be able to quote ' as \' It also requires to quote the backslash, so that it needs to be escaped once for the shell, then another time for perl. Also don't work on obsolete strings (those are prefixed with #~ in the po files) Also note that <link..></link> gets turned into <link ../> during translation extraction (along with removal of the space between the attribute name and the value), so the pattern needs to be slightly different here) Change-Id: I95e53a08e6b0095cd894109ea0de154cc4859d8f Reviewed-on: https://gerrit.libreoffice.org/c/help/+/143713 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'source/text/swriter/main0110.xhp')
-rw-r--r--source/text/swriter/main0110.xhp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/text/swriter/main0110.xhp b/source/text/swriter/main0110.xhp
index 620c1a120c..22851a1fe2 100644
--- a/source/text/swriter/main0110.xhp
+++ b/source/text/swriter/main0110.xhp
@@ -43,13 +43,13 @@
<paragraph role="paragraph" id="par_id811605976075887">Insert a row above the row where the cursor is currently placed.</paragraph>
<h3 id="hd_id621605976125265">Rows Below</h3>
<paragraph role="paragraph" id="par_id701605976138113">Insert a row below the row where the cursor is currently placed.</paragraph>
-<h3 id="par_idN105E5" xml-lang="en-US"><link href="text/swriter/01/05120400.xhp" name="insertrows">Rows</link></h3>
+<h3 id="par_idN105E5" xml-lang="en-US"><link href="text/swriter/01/05120400.xhp">Rows</link></h3>
<paragraph id="par_idN105E8" role="paragraph" xml-lang="en-US">Opens dialog box for inserting rows.<comment>see also swriter/02/0409</comment></paragraph>
<h3 id="hd_id841605976313559">Columns Before</h3>
<paragraph role="paragraph" id="par_id531605976347665">Inserts a column before the column where the cursor is currently placed.</paragraph>
<h3 id="hd_id21605976318849">Columns After</h3>
<paragraph role="paragraph" id="par_id731605976350615">Inserts a column after the column where the cursor is currently placed.</paragraph>
-<h3 id="par_idN105CD" xml-lang="en-US"><link href="text/swriter/01/05120400.xhp" name="insertrows">Columns</link></h3>
+<h3 id="par_idN105CD" xml-lang="en-US"><link href="text/swriter/01/05120400.xhp">Columns</link></h3>
<paragraph id="par_idN105D0" role="paragraph" xml-lang="en-US">Opens dialog box for inserting columns.<comment>see also swriter/02/0410</comment></paragraph>
<h2 id="par_idN105AF" xml-lang="en-US">Delete</h2>
@@ -88,7 +88,7 @@
<h3 id="par_idN106E9" xml-lang="en-US">Row Height</h3>
<paragraph id="par_idN106EC" role="paragraph" xml-lang="en-US">Opens the Row Height dialog where you can change the height of a row.</paragraph>
-<h3 id="hd_id451605990864684"><link href="text/shared/01/minimal_row_height.xhp" name="Minimal Row Height">Minimal Row Height</link></h3>
+<h3 id="hd_id451605990864684"><link href="text/shared/01/minimal_row_height.xhp">Minimal Row Height</link></h3>
<embed href="text/shared/01/minimal_row_height.xhp#minimal_row_height_text"/>
<h3 id="par_idN106EF" xml-lang="en-US"><link href="text/swriter/01/05110200.xhp">Optimal Row Height</link></h3>
@@ -100,7 +100,7 @@
<h3 id="par_idN106B5" xml-lang="en-US">Column Width</h3>
<paragraph id="par_idN106B8" role="paragraph" xml-lang="en-US">Opens the Column Width dialog where you can change the width of a column.</paragraph>
-<h3 id="hd_id671605991381461"><link href="text/shared/01/minimal_column_width.xhp" name="Minimal Column Width">Minimal Column Width</link></h3>
+<h3 id="hd_id671605991381461"><link href="text/shared/01/minimal_column_width.xhp">Minimal Column Width</link></h3>
<embed href="text/shared/01/minimal_column_width.xhp#minimal_column_width_text"/>
<h3 id="par_idN106BB" xml-lang="en-US"><link href="text/swriter/01/05120200.xhp">Optimal Column Width</link></h3>
@@ -130,7 +130,7 @@
<paragraph id="par_idN107AC" role="paragraph" xml-lang="en-US">Opens <link href="text/shared/optionen/01040500.xhp">a dialog</link> where you can specify the format of numbers in the table.</paragraph>
<bookmark xml-lang="en-US" branch="hid/20459" id="bm_id4031800" localize="false"/>
-<h2 id="hd_id931605978707761"><link href="text/swriter/guide/number_date_conv.xhp" name="numberrecognition">Number Recognition</link></h2>
+<h2 id="hd_id931605978707761"><link href="text/swriter/guide/number_date_conv.xhp">Number Recognition</link></h2>
<paragraph role="paragraph" id="par_id511605978897703">Toggles the setting for automatically recognizing numbers or dates that you enter into a table cell, converting them from text to an appropriate number format.</paragraph>
<h2 id="hd_id711630938569930">Header Rows Repeat Across Pages</h2>