Don't trim() Ldesc; may muck with FILE_ID.DIZ type descriptions

This commit is contained in:
Bryan Ashby 2017-03-10 21:21:09 -07:00
parent 221ec08bc8
commit 732e2eefd5
2 changed files with 7 additions and 7 deletions

View file

@ -232,7 +232,12 @@ module.exports = class TicFileInfo {
return;
}
value = line.substr(keyEnd + 1).trim();
value = line.substr(keyEnd + 1);
// don't trim Ldesc; may mess with FILE_ID.DIZ type descriptions
if('ldesc' !== key) {
value = value.trim();
}
// convert well known keys to a more reasonable format
switch(key) {