PNM clean-up: Avoid leading/trailing whitespace in comments.

This commit is contained in:
Harald Kuhr 2022-02-14 19:27:55 +01:00
parent 4d190892df
commit 5347015cbd

View File

@ -82,9 +82,9 @@ final class PNMHeaderParser extends HeaderParser {
if (read == '#') {
// Read rest of the line as comment
String comment = readLineUTF8(input);
String comment = readLineUTF8(input).trim();
if (!comment.trim().isEmpty()) {
if (!comment.isEmpty()) {
comments.add(comment);
}