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

New commits:
commit a8cdd8fb5c53f2661cc62618e5c4192011c25517
Author:     Olivier Hallot <olivier.hal...@libreoffice.org>
AuthorDate: Sat Dec 3 18:56:33 2022 -0300
Commit:     Olivier Hallot <olivier.hal...@libreoffice.org>
CommitDate: Sat Dec 3 21:59:42 2022 +0000

    Remove xml-lang from snippets
    
    xml-lang is IMPLIED in the DTD and is not required anymore
    
    Change-Id: I15bce30027a5d36b6d148fb84709bfdd7380a691
    Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/143627
    Tested-by: Olivier Hallot <olivier.hal...@libreoffice.org>
    Reviewed-by: Olivier Hallot <olivier.hal...@libreoffice.org>

diff --git a/help3/xhpeditor/snippets.js b/help3/xhpeditor/snippets.js
index 1f3ad206..e519a50d 100644
--- a/help3/xhpeditor/snippets.js
+++ b/help3/xhpeditor/snippets.js
@@ -15,11 +15,11 @@
 function startNewXHPDoc() {
     if (confirm('Lose all changes and start fresh?')) {
         var a1 =
-        editor.doc.setValue('<?xml version="1.0" 
encoding="UTF-8"?>\n<helpdocument version="1.0">\n<!--\n * This file is part of 
the LibreOffice project.\n *\n * This Source Code Form is subject to the terms 
of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not 
distributed with this\n * file, You can obtain one at 
https://mozilla.org/MPL/2.0/.\n *\n-->\n\n<meta>\n  <topic id="CHANGE ME" 
indexer="include" status="PUBLISH">\n    <title id="tit" xml-lang="en-US">TITLE 
ME</title>\n    <filename>FILE NAME ME</filename>\n  
</topic>\n</meta>\n<body>\n\n</body>\n</helpdocument>');
+        editor.doc.setValue('<?xml version="1.0" 
encoding="UTF-8"?>\n<helpdocument version="1.0">\n<!--\n * This file is part of 
the LibreOffice project.\n *\n * This Source Code Form is subject to the terms 
of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not 
distributed with this\n * file, You can obtain one at 
https://mozilla.org/MPL/2.0/.\n *\n-->\n\n<meta>\n  <topic id="CHANGE ME" 
indexer="include" status="PUBLISH">\n    <title id="tit" >TITLE ME</title>\n    
<filename>FILE NAME ME</filename>\n  
</topic>\n</meta>\n<body>\n\n</body>\n</helpdocument>');
     }
 }
 function docHeading() {
-    var a1 = '<section id="CHANGE ME">\n    <bookmark id="' + random('bm') + 
'" xml-lang="en-US" branch="hid/CHANGE ME" localize="false"/>\n';
+    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 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());
@@ -129,17 +129,17 @@ function bookmarkValue() {
 }
 
 function bookmarkBranch() {
-    var a1 = '<bookmark xml-lang="en-US" branch="hid/CHANGE 
ME(path/to/dialog/widget)" id="' + random('bm') + '" localize="false"/>\n';
+    var a1 = '<bookmark  branch="hid/CHANGE ME(path/to/dialog/widget)" id="' + 
random('bm') + '" localize="false"/>\n';
     editor.replaceRange(a1, editor.doc.getCursor());
 }
 
 function bookmarkNoWidget() {
-    var a1 = '<bookmark xml-lang="en-US" branch="hid/CHANGE 
ME(/path/to/dialog)/@@nowidget@@" id="' + random('bm') + '" 
localize="false"/>\n';
+    var a1 = '<bookmark  branch="hid/CHANGE ME(/path/to/dialog)/@@nowidget@@" 
id="' + random('bm') + '" localize="false"/>\n';
     editor.replaceRange(a1, editor.doc.getCursor());
 }
 
 function bookmarkIndex() {
-    var a1 = '<bookmark xml-lang="en-US" branch="index" id="' + random('bm') + 
'">\n<bookmark_value>CHANGE ME;CHANGE ME TOO</bookmark_value>\n\n</bookmark>\n';
+    var a1 = '<bookmark  branch="index" id="' + random('bm') + 
'">\n<bookmark_value>CHANGE ME;CHANGE ME TOO</bookmark_value>\n\n</bookmark>\n';
     editor.replaceRange(a1, editor.doc.getCursor());
 }
 

Reply via email to