Skip to content
Commit 767bce16 authored by Stefan Brüns's avatar Stefan Brüns
Browse files

[PlaintextExtractor] Verify handling files missing newline delimiters

A file may end without a newline-like delimiter, either as it has none,
or if the file uses something else (e.g. classic Mac OS used '\r' only).

The extractor behavior here depends on which implementation is used:
- std::getline will strip the default delimiter (i.e. '\n') and return the
  remainder
- getline will keep the delimiter, but the code unconditionally removes
  the last byte from the line. This may truncate actual content.
parent eb902059
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment