summaryrefslogtreecommitdiff
path: root/source/text/shared/02/12070200.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/shared/02/12070200.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/shared/02/12070200.xhp')
-rw-r--r--source/text/shared/02/12070200.xhp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/text/shared/02/12070200.xhp b/source/text/shared/02/12070200.xhp
index aa7d7ffd74..2261a93abf 100644
--- a/source/text/shared/02/12070200.xhp
+++ b/source/text/shared/02/12070200.xhp
@@ -33,7 +33,7 @@
<switch select="appl"><case select="WRITER">
<bookmark branch="hid/modules/swriter/ui/insertdbcolumnsdialog/asfields" xml-lang="en-US" id="bm_id3153116" localize="false"/><paragraph role="heading" level="1" id="hd_id3149991" xml-lang="en-US">Fields</paragraph>
- <bookmark xml-lang="en-US" branch="index" id="bm_id3149987"><bookmark_value>database contents; inserting as fields</bookmark_value></bookmark><paragraph xml-lang="en-US" id="par_id3149987" role="paragraph"><ahelp hid="modules/swriter/ui/insertdbcolumnsdialog/asfields" visibility="hidden">Inserts data selected from the data source browser into the document as fields.</ahelp> In the <emph>Insert Database Columns</emph> dialog, select the <link href="text/swriter/01/04090000.xhp" name="Fields">Fields</link> to insert the selected data into the document as fields. These <link href="text/swriter/01/04090006.xhp" name="database fields">database fields</link> work as wildcards for the individual database columns and can be used for form letters. Click the <link href="text/shared/02/12080000.xhp" name="Data to Fields"><emph>Data to Fields</emph></link> icon to match the contents of the fields to the currently selected record.</paragraph>
+ <bookmark xml-lang="en-US" branch="index" id="bm_id3149987"><bookmark_value>database contents; inserting as fields</bookmark_value></bookmark><paragraph xml-lang="en-US" id="par_id3149987" role="paragraph"><ahelp hid="modules/swriter/ui/insertdbcolumnsdialog/asfields" visibility="hidden">Inserts data selected from the data source browser into the document as fields.</ahelp> In the <emph>Insert Database Columns</emph> dialog, select the <link href="text/swriter/01/04090000.xhp">Fields</link> to insert the selected data into the document as fields. These <link href="text/swriter/01/04090006.xhp">database fields</link> work as wildcards for the individual database columns and can be used for form letters. Click the <link href="text/shared/02/12080000.xhp"><emph>Data to Fields</emph></link> icon to match the contents of the fields to the currently selected record.</paragraph>
<paragraph xml-lang="en-US" role="note" id="par_id3153114">If several records are selected when you choose the <emph>Data to Text</emph> function, the mail merge fields will be inserted according to the number of records. Also, a field command such as "Next record" will be inserted automatically between individual field command blocks.</paragraph>
<paragraph xml-lang="en-US" role="paragraph" id="par_id3145090">The <emph>Insert Database Columns</emph> dialog lets you define which database fields to insert into the document and how to format the paragraphs.</paragraph>
<paragraph role="heading" level="2" id="hd_id3156136" xml-lang="en-US">Fields</paragraph>
@@ -47,7 +47,7 @@
<paragraph role="paragraph" id="par_id3163802" xml-lang="en-US"><ahelp hid="modules/swriter/ui/insertdbcolumnsdialog/textview" visibility="visible">Lists the database columns that you selected to be inserted into the document. You can also enter text here. This text will be also inserted into the document.</ahelp> The entries' order in the selection field corresponds to the data order in the document.</paragraph>
<embed href="text/shared/02/12070100.xhp#format"/>
<bookmark branch="hid/modules/swriter/ui/insertdbcolumnsdialog/parastyle" xml-lang="en-US" id="bm_id3154852" localize="false"/><paragraph role="heading" level="3" id="hd_id3153257" xml-lang="en-US">Paragraph Style</paragraph>
- <paragraph xml-lang="en-US" id="par_id3158430" role="paragraph">By default, the inserted paragraphs are formatted with the current Paragraph Styles. This format corresponds to the "none" entry in the <emph>Paragraph Style</emph> list box. <ahelp hid="modules/swriter/ui/insertdbcolumnsdialog/parastyle" visibility="visible">This is where you can select other Paragraph Styles to apply to the paragraph you want to insert into the document.</ahelp> The list box displays the available Paragraph Styles defined in <item type="productname">%PRODUCTNAME</item> and managed in the <link href="text/swriter/01/05130000.xhp" name="Style Catalog">Style Catalog</link>.</paragraph>
+ <paragraph xml-lang="en-US" id="par_id3158430" role="paragraph">By default, the inserted paragraphs are formatted with the current Paragraph Styles. This format corresponds to the "none" entry in the <emph>Paragraph Style</emph> list box. <ahelp hid="modules/swriter/ui/insertdbcolumnsdialog/parastyle" visibility="visible">This is where you can select other Paragraph Styles to apply to the paragraph you want to insert into the document.</ahelp> The list box displays the available Paragraph Styles defined in <item type="productname">%PRODUCTNAME</item> and managed in the <link href="text/swriter/01/05130000.xhp">Style Catalog</link>.</paragraph>
</section>
</case></switch>
</body>