+2002-08-21 Dekel Tsur <dekelts@tau.ac.il>
+
+ * insetcite.C (latex): Remove spaces only after commmas.
+
2002-08-21 Lars Gullik Bjønnes <larsbj@gullik.net>
* insettext.C: remove NO_COMPABILITY stuff
string::const_iterator end = getContents().end();
// Paranoia check: make sure that there is no whitespace in here
string content;
+ char last = ',';
for (; it != end; ++it) {
- if (*it != ' ') content += *it;
+ if (*it != ' ')
+ last = *it;
+ if (*it != ' ' || last != ',')
+ content += *it;
}
os << "{" << content << "}";