Backport r35109 (bug #6786)

http://www.lyx.org/trac/ticket/6786


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@35127 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2010-08-11 18:45:08 +00:00
parent 79830bce6e
commit 52f69d2ffd
2 changed files with 8 additions and 5 deletions

View File

@ -246,12 +246,12 @@ void KeyMap::write(string const & bind_file, bool append, bool unbind) const
FuncCode action = it->request.action;
string arg = to_utf8(it->request.argument());
string const cmd = lyxaction.getActionName(action)
+ (arg.empty() ? string() : " " + arg) ;
os << tag << " \""
<< to_utf8(it->sequence.print(KeySequence::BindFile))
<< "\" \""
<< lyxaction.getActionName(action)
<< (arg.empty() ? "" : " ") << arg
<< "\"\n";
<< to_utf8(it->sequence.print(KeySequence::BindFile))
<< "\" " << Lexer::quoteString(cmd)
<< "\n";
}
os << "\n";
os.close();

View File

@ -93,6 +93,9 @@ What's new
- Don't allow to insert margin notes and footnotes into captions because
this would lead to LaTeX errors.
- Fix handling of commands containing a double quote (") in shortcut
editor (bug 6786).
* DOCUMENTATION AND LOCALIZATION