mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
Fix minor problem with fromLaTeXCommand(): We were missing things like
\"{U}ber, since \"{U} was followed by a letter. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27987 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
68ab34f169
commit
a05cc2c93e
@ -502,11 +502,15 @@ docstring Encodings::fromLaTeXCommand(docstring const & cmd, docstring & rem)
|
||||
// does start with '\', we accept the match only if
|
||||
// this is a valid macro, i.e., either it is a single
|
||||
// (nonletter) char macro, or nothing else follows,
|
||||
// or what follows is a nonletter char.
|
||||
// or what follows is a nonletter char, or the last
|
||||
// character is a }.
|
||||
if ((math == tmp || text == tmp)
|
||||
&& (tmp[0] != '\\'
|
||||
|| (tmp.size() == 2 && !isAlphaASCII(tmp[1]))
|
||||
|| k == cmdend || !isAlphaASCII(cmd[k]))) {
|
||||
|| k == cmdend
|
||||
|| !isAlphaASCII(cmd[k])
|
||||
|| tmp[tmp.size() - 1] == '}')
|
||||
) {
|
||||
c = it->first;
|
||||
j = k - 1;
|
||||
i = j + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user