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:
Enrico Forestieri 2009-10-23 15:00:36 +00:00
parent 537caa8833
commit 1535e4b825

View File

@ -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;