1. jhove2
  2. main
  3. Issues

Issues

Issue #15 new

Bad line endings in property files.

Isaac Rabinovitch
created an issue

Generated property files have Unix-specific line endings at the beginning and platform-specific line endings in the rest of the file. Makes them a pain to edit on Windows or Mac. This happens because the file headers are stored as strings with \n used to encode EOL. The resulting LF character is not translated when the string is written out using println(). To get that effect, replace \n with %n and println with printf.

Affected classes:

org.jhove2.app.util.DisplayerPropertyFileGenerator

org.jhove2.app.util.UnitsPropertyFileGenerator

Comments (0)

  1. Log in to comment