UCL / pet-rd-tools

Command line tools for PET-MR (pre-)processing
Apache License 2.0
13 stars 4 forks source link

Fix newline bug #16

Closed ashgillman closed 6 years ago

ashgillman commented 6 years ago

The problem was when 'name of data file' was replaced, it overwrote the '\r'.

There was also an issue in CleanUpLineEncoding, a '\n' needs to always be added to the string. Only strings with '\r\r\n' were correct previously. Now all lines should end with '\r\n'.

I also refactored the repeated code to the common super class.