mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix the rest of bug #6284.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31694 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
537caa8833
commit
1535e4b825
@ -93,6 +93,8 @@ WriteStream & operator<<(WriteStream & ws, docstring const & s)
|
||||
} else if (ws.pendingSpace() && s.length() > 0) {
|
||||
if (isAlphaASCII(s[0]))
|
||||
ws.os() << ' ';
|
||||
else if (s[0] == ' ' && ws.textMode())
|
||||
ws.os() << '\\';
|
||||
ws.pendingSpace(false);
|
||||
}
|
||||
ws.os() << s;
|
||||
@ -185,6 +187,8 @@ WriteStream & operator<<(WriteStream & ws, char const * s)
|
||||
} else if (ws.pendingSpace() && strlen(s) > 0) {
|
||||
if (isAlphaASCII(s[0]))
|
||||
ws.os() << ' ';
|
||||
else if (s[0] == ' ' && ws.textMode())
|
||||
ws.os() << '\\';
|
||||
ws.pendingSpace(false);
|
||||
}
|
||||
ws.os() << s;
|
||||
@ -203,6 +207,8 @@ WriteStream & operator<<(WriteStream & ws, char c)
|
||||
} else if (ws.pendingSpace()) {
|
||||
if (isAlphaASCII(c))
|
||||
ws.os() << ' ';
|
||||
else if (c == ' ' && ws.textMode())
|
||||
ws.os() << '\\';
|
||||
ws.pendingSpace(false);
|
||||
}
|
||||
ws.os() << c;
|
||||
|
Loading…
Reference in New Issue
Block a user