diff options
author | Rafael Lima <rafael.palma.lima@gmail.com> | 2022-01-07 14:59:29 +0100 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2022-01-07 15:53:45 +0100 |
commit | 9795e383af868f3d293032308267734e845cc373 (patch) | |
tree | f93e1f6f8aaefbdbbccd65dddc623ae62caa0f47 /help3 | |
parent | 1a6bbfff3bc4a1540040abd882fce7912ef50d63 (diff) |
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.lauhakangas@libreoffice.org>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3')
-rw-r--r-- | help3/xhpeditor/snippets.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/help3/xhpeditor/snippets.js b/help3/xhpeditor/snippets.js index fa17cd0c..1f3ad206 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>',''); |