Andre Poenitz <[EMAIL PROTECTED]> writes:
| On Tue, Jan 07, 2003 at 10:37:19AM +0100, Lars Gullik Bj�nnes wrote:
| > all calls to getline is followed by a call to rtrim...
|
| Indeed.
|
| I now just wonder why the removal of the '\r' is necessary at all.
|
| It shouldn't for the common case of putting the line into istringstream and
| reading from there.
|
| The problem in LaTeX.C is only
|
| if (token.empty())
| continue;
|
| Which could be replaced by
|
| if (token.size() < 5)
| continue;
That is a magic solution... not one I like very much...
I'd prefere a new implementation of getline:
... ourgetline(...) {
getline(...);
rtrim(..., "\n\r");
...
}
or similar.
--
Lgb