-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
Fixes #23
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,7 +175,7 @@ public CSLItemData toItemData(BibTeXEntry e) { | |
//get all fields from the BibTeX entry | ||
Map<String, String> entries = new HashMap<>(); | ||
for (Map.Entry<Key, Value> field : e.getFields().entrySet()) { | ||
String us = field.getValue().toUserString(); | ||
String us = field.getValue().toUserString().replaceAll("\\r", ""); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
michel-kraemer
Author
Owner
|
||
|
||
//convert LaTeX string to normal text | ||
try { | ||
|
3 comments
on commit 729ca2c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After reading http://stackoverflow.com/questions/1761051/difference-between-n-and-r, I think, \r
is never is used in 2016 and the test case in JabRef should be adopted accordingly. We thought that \r
was the issue, because of
Bad character inside entry Lexical error at line 1, column 97. Encountered: "\r" (13), after : ""
Full issue at JabRef/jabref-koppor#174
entry.setField(FieldName.AUTHOR, "Doe, John and \rDoe, Jane");
should become
entry.setField(FieldName.AUTHOR, "Doe, John and\nDoe, Jane");
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the clarification. Does this suggest that I should revert dc800d1 and go back to the behaviour from 1.0.1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, please revert. My issue described at JabRef/jabref-koppor#174 is fixed by using version 1.0.1 of the library.
It would be better if
\r
is replaced by a space since currently the lines would be connected which changes their meaning.