+2001-04-24 Allan Rae <rae@lyx.org>
+
+ * xforms_helpers.C (formatted): two consecutive spaces would kill it.
+
2001-04-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* xforms_helpers.C (formatted): do not use string::substr(1) on a
for (string::const_iterator sit = sin.begin();
sit != sin.end(); ++sit) {
if ((*sit) == ' ' || (*sit) == '\n') {
- sentence.push_back(word);
- word.erase();
+ if (!word.empty()) {
+ sentence.push_back(word);
+ word.erase();
+ }
if ((*sit) == '\n') word += '\n';
} else {