mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix known_escaped_chars
(this includes the amend)
This commit is contained in:
parent
cedb4838f0
commit
f01369a56f
@ -346,7 +346,7 @@ string minted_nonfloat_caption = "";
|
||||
|
||||
// Characters that have to be escaped by \\ in LaTeX
|
||||
char const * const known_escaped_chars[] = {
|
||||
"&", "_", "$", "%", "#", "^", "{", "}"};
|
||||
"&", "_", "$", "%", "#", "^", "{", "}", 0};
|
||||
|
||||
|
||||
/// splits "x=z, y=b" into a map and an ordered keyword vector
|
||||
@ -621,7 +621,7 @@ pair<bool, docstring> convert_unicodesymbols(docstring s)
|
||||
else {
|
||||
res = false;
|
||||
for (auto const & c : known_escaped_chars)
|
||||
if (prefixIs(s, from_ascii("\\") + c))
|
||||
if (c != 0 && prefixIs(s, from_ascii("\\") + c))
|
||||
res = true;
|
||||
i = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user