Ralf Gerlich wrote:
Unfortunately that seems to break skipping the blank lines which are in
the standard apt.dat-files. I get an "Unknown line in file:"-message
when the reader encounters the first blank line after the version line.
Obviously in.getline() includes the carriage return (checked that with
--log-level=bulk), which was previously swallowed by
simgear::strutils::split(). That way "!token.size()" could detect the
empty line.
Also it seems that an empty line which consists of spaces will not be
detected by the new code, but as people should not edit the apt.dat-file
manually anyway, that might not be as important. One could add a note to
the error message "Unknown line in file:" though.
These issues should be fixed now.
Erik
_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d