help3/xhpeditor/snippets.js |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b1b1ad1e4b562ee56eeeb87619732beff46da8b9
Author:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
AuthorDate: Mon Dec 19 09:47:40 2022 +0200
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Mon Dec 19 07:49:08 2022 +0000

    Remove name attribute from <link> snippets
    
    Change-Id: If4ba3fd9e7e3503b3d562c9be00c6754b618d7bb
    Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/144448
    Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>

diff --git a/help3/xhpeditor/snippets.js b/help3/xhpeditor/snippets.js
index e519a50d..207e493c 100644
--- a/help3/xhpeditor/snippets.js
+++ b/help3/xhpeditor/snippets.js
@@ -20,7 +20,7 @@ function startNewXHPDoc() {
 }
 function docHeading() {
     var a1 = '<section id="CHANGE ME">\n    <bookmark id="' + random('bm') + 
'"  branch="hid/CHANGE ME" localize="false"/>\n';
-    var a2 = '    <h1 id="' + random('hd') + '"><link href="HELP FILE URL" 
name="CHANGE ME">CHANGE ME</link></h1>\n';
+    var a2 = '    <h1 id="' + random('hd') + '"><link href="HELP FILE 
URL">CHANGE ME</link></h1>\n';
     var a3 = '    <paragraph id="' + random('par') + '" 
role="paragraph"><variable id="CHANGE ME"><ahelp hid="CHANGE ME">CHANGE 
ME</ahelp></variable></paragraph>\n\n</section>\n';
     editor.replaceRange(a1 + a2 + a3 , editor.doc.getCursor());
 }
@@ -219,7 +219,7 @@ function tEmbedvar(){
     editor.replaceRange(a1, editor.doc.getCursor());
 }
  function tLink(){
-     var a1 ='<link href="text/CHANGE ME(path/to/xhp/file#select id)" 
name="CHANGE ME">';
+     var a1 ='<link href="text/CHANGE ME(path/to/xhp/file#select id)">';
      var a2 = '</link>';
      editor.replaceSelection(a1 + editor.doc.getSelection() + a2,'');
 }

Reply via email to