mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 20:15:28 -04:00
PNM clean-up: Avoid leading/trailing whitespace in comments.
(cherry picked from commit 5347015cbd0bfc7fcab4b1840e3beeabafb905bf)
This commit is contained in:
parent
b51e8ccf6e
commit
16c78052ee
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user