mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
Wrap flex-insert's argument in quotes, as it could contain spaces. (Do we need to go further, in case it contains quotes? Or do you get what you deserve if you try that?)
Jurgen, OK for branch? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27698 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
20f3fbd521
commit
bf8c0ff40d
@ -847,11 +847,12 @@ void MenuDefinition::expandFlexInsert(
|
||||
TextClass::InsetLayouts::const_iterator cit = insetLayouts.begin();
|
||||
TextClass::InsetLayouts::const_iterator end = insetLayouts.end();
|
||||
for (; cit != end; ++cit) {
|
||||
docstring const label = cit->first;
|
||||
if (cit->second.lyxtype() == type)
|
||||
if (cit->second.lyxtype() == type) {
|
||||
docstring const label = cit->first;
|
||||
addWithStatusCheck(MenuItem(MenuItem::Command,
|
||||
toqstr(translateIfPossible(label)),
|
||||
FuncRequest(LFUN_FLEX_INSERT, label)));
|
||||
FuncRequest(LFUN_FLEX_INSERT, '"' + label + '"')));
|
||||
}
|
||||
}
|
||||
// FIXME This is a little clunky.
|
||||
if (items_.empty() && type == InsetLayout::CUSTOM)
|
||||
|
Loading…
Reference in New Issue
Block a user