Skip to content

Commit

Permalink
Remove newlines from file annotaion contents #3280
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-kolb committed Oct 12, 2017
1 parent 6768ecb commit 288a328
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/org/jabref/model/pdf/FileAnnotation.java
Expand Up @@ -6,6 +6,8 @@
import java.util.Objects;
import java.util.Optional;

import org.jabref.logic.formatter.bibtexfields.RemoveNewlinesFormatter;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.pdfbox.cos.COSName;
Expand Down Expand Up @@ -106,7 +108,8 @@ private String parseContent(final String content) {
return "";
}

return content.trim();
// remove line breaks
return new RemoveNewlinesFormatter().format(content.trim());
}

/**
Expand Down

0 comments on commit 288a328

Please sign in to comment.