[Libreoffice-commits] dev-tools.git: help3/xhpeditor

Olivier Hallot (via logerrit) logerrit at kemper.freedesktop.org
Mon Feb 17 22:14:53 UTC 2020


 help3/xhpeditor/menu.php    |    2 +-
 help3/xhpeditor/snippets.js |   16 ++++++++--------
 2 files changed, 9 insertions(+), 9 deletions(-)

New commits:
commit 5469a86b61e813a26f623e1321ce57cec76ba816
Author:     Olivier Hallot <olivier.hallot at libreoffice.org>
AuthorDate: Mon Feb 17 19:11:41 2020 -0300
Commit:     Olivier Hallot <olivier.hallot at libreoffice.org>
CommitDate: Mon Feb 17 23:14:25 2020 +0100

    Remove new line after paragraphs
    
    Change-Id: I7cab61c03d83919a4681b0f63d6b7207b97393f3
    Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/88896
    Tested-by: Olivier Hallot <olivier.hallot at libreoffice.org>
    Reviewed-by: Olivier Hallot <olivier.hallot at libreoffice.org>

diff --git a/help3/xhpeditor/menu.php b/help3/xhpeditor/menu.php
index d31f7b2..1a8f4a9 100644
--- a/help3/xhpeditor/menu.php
+++ b/help3/xhpeditor/menu.php
@@ -122,7 +122,7 @@
     <button class="dropbtn">Help</button>
     <div class="dropdown-content">
         <a href="https://wiki.documentfoundation.org/Documentation/Understanding,_Authoring_and_Editing_Openoffice.org_Help/3" target="_blank">XHP Reference</a>
-        <a href="doc/manual.html#commands" target="_blank">Editor shortcuts</a>
+        <a href="cm/doc/manual.html#commands" target="_blank">Editor shortcuts</a>
         <a href="#" target="_blank">Editor</a>
     </div>
   </div>
diff --git a/help3/xhpeditor/snippets.js b/help3/xhpeditor/snippets.js
index 0bdc47c..445f0f0 100644
--- a/help3/xhpeditor/snippets.js
+++ b/help3/xhpeditor/snippets.js
@@ -28,48 +28,48 @@ function docHeading() {
 // Paragraph
 function paragraph(role) {
     var a0 = '<paragraph role="'+ role + '" id="' + random("par") + '">'
-    var a1 = '</paragraph>\n';
+    var a1 = '</paragraph>';
     editor.replaceSelection(a0 + editor.doc.getSelection() + a1,'');
 }
 
 function note() {
     var a0 = '<note id="' + random('par') + '">'
-    var a1 = '</note>\n';
+    var a1 = '</note>';
     editor.replaceSelection(a0 + editor.doc.getSelection() + a1,'');
 }
 
 function tip() {
     var a0 = '<tip id="' + random('par') + '">'
-    var a1 = '</tip>\n';
+    var a1 = '</tip>';
     editor.replaceSelection(a0 + editor.doc.getSelection() + a1,'');
 }
 
 function warning() {
     var a0 = '<warning id="' + random('par') + '">'
-    var a1 = '</warning>\n';
+    var a1 = '</warning>';
     editor.replaceSelection(a0 + editor.doc.getSelection() + a1,'');
 }
 
 function heading(level) {
     var a0 = '<h'+ level +' id="' + random('hd') + '">'
-    var a1 = '</h' + level+'>\n';
+    var a1 = '</h' + level+'>';
     editor.replaceSelection(a0 + editor.doc.getSelection() + a1,'');
 }
 
 function bascode_par() {
     var a1 = '<paragraph role="bascode" id="' + random('bas') + '">';
-    var a2 = '</paragraph>\n';
+    var a2 = '</paragraph>';
     editor.replaceSelection(a1 + editor.doc.getSelection() + a2,'');
 }
 function pycode_par() {
     var a1 = '<paragraph role="pycode" id="' + random('pyc') + '">';
-    var a2 = '</paragraph>\n';
+    var a2 = '</paragraph>';
     editor.replaceSelection(a1 + editor.doc.getSelection() + a2,'');
 }
 
 function image_par() {
     var a1 = '<paragraph role="image" id="' + random('par') + '"><image src="media/CHANGE-ME" id="' + random('img') + '" width="" height=""><alt id="' + random('alt') +'">';
-    var a2 = '</alt></image></paragraph>\n';
+    var a2 = '</alt></image></paragraph>';
     editor.replaceSelection(a1 + editor.doc.getSelection() + a2,'');
 }
 // Tables


More information about the Libreoffice-commits mailing list