help3/xhpeditor/snippets.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9795e383af868f3d293032308267734e845cc373
Author:     Rafael Lima <rafael.palma.l...@gmail.com>
AuthorDate: Fri Jan 7 14:59:29 2022 +0100
Commit:     Olivier Hallot <olivier.hal...@libreoffice.org>
CommitDate: Fri Jan 7 15:53:45 2022 +0100

    Remove extra blank space after <menuitem> tag
    
    In XHP editor, clicking Characters - <menuitem> will add an additional 
blank space at the end of the snippet.
    
    This is an issue while editing XHP files because when you click this 
option, it adds this blank space and occasionally makes XHP files have "  " 
(two consecutive blank spaces).
    
    Change-Id: Ib7a9b235a8476bcbfce844009e9951101c07a4c5
    Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/128078
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
    Reviewed-by: Olivier Hallot <olivier.hal...@libreoffice.org>
    Tested-by: Olivier Hallot <olivier.hal...@libreoffice.org>

diff --git a/help3/xhpeditor/snippets.js b/help3/xhpeditor/snippets.js
index fa17cd0..1f3ad20 100644
--- a/help3/xhpeditor/snippets.js
+++ b/help3/xhpeditor/snippets.js
@@ -154,7 +154,7 @@ function item(type) {
 }
 
 function c_menuitem() {
-    editor.replaceSelection('<menuitem>'+ editor.doc.getSelection() 
+'</menuitem> ','');
+    editor.replaceSelection('<menuitem>'+ editor.doc.getSelection() 
+'</menuitem>','');
 }
 function _literal() {
     editor.replaceSelection('<literal>'+ editor.doc.getSelection() 
+'</literal>','');

Reply via email to