mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
FindAdv: Amend(2) f845a4e9
Removing '\n' like in previous version with utf8-strings This is needed e.g. for display math, which comes as "\n\\[\n.....\n\\]\n"
This commit is contained in:
parent
3576be9a3b
commit
1464bd3f3f
@ -4014,8 +4014,8 @@ static string convertLF2Space(docstring const &s, bool ignore_format)
|
|||||||
dospace = false;
|
dospace = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ((pos > start) &&
|
else if (pos > start) {
|
||||||
s[pos-1] == '%') {
|
if (s[pos-1] == '%') {
|
||||||
skip = 1;
|
skip = 1;
|
||||||
while ((pos > start+skip) && (s[pos-1-skip] == '%'))
|
while ((pos > start+skip) && (s[pos-1-skip] == '%'))
|
||||||
skip++;
|
skip++;
|
||||||
@ -4026,6 +4026,11 @@ static string convertLF2Space(docstring const &s, bool ignore_format)
|
|||||||
dospace = false;
|
dospace = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (!isAlnumASCII(s[pos+1]) || !isAlnumASCII(s[pos-1])) {
|
||||||
|
dospace = false;
|
||||||
|
skip = 0; // remove the '\n' only
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
dospace = true;
|
dospace = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user