Correctly strip the separator character when loading plain-text files

This commit is contained in:
Thomas Goyne 2013-06-26 11:26:16 -07:00
parent b3ff6a854d
commit 5199923a66

View file

@ -105,7 +105,7 @@ void TXTSubtitleFormat::ReadFile(AssFile *target, agi::fs::path const& filename,
if (pos != std::string::npos) { if (pos != std::string::npos) {
actor = value.substr(0, pos); actor = value.substr(0, pos);
boost::trim(actor); boost::trim(actor);
value.erase(0, pos); value.erase(0, pos + 1);
} }
} }
} }