Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions jablib/src/main/java/org/jabref/logic/bibtex/FieldWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,16 +191,16 @@ private String formatAndResolveStrings(String content) {
pos2 = -1;
} else {
pos2 = content.indexOf(BIBTEX_STRING_START_END_SYMBOL, pos1 + 1);
}

if (pos2 == -1) {
pos1 = content.length();
LOGGER.warn("The character {} is not allowed in BibTeX strings unless escaped as in '\\\\{}'. "
+ "In JabRef, use pairs of # characters to indicate a string. "
+ "Field value: {}",
BIBTEX_STRING_START_END_SYMBOL,
BIBTEX_STRING_START_END_SYMBOL,
content);
if (pos2 == -1) {
pos1 = content.length();
LOGGER.warn("The character {} is not allowed in BibTeX strings unless escaped as in '\\\\{}'. "
+ "In JabRef, use pairs of # characters to indicate a string. "
+ "Field value: {}",
BIBTEX_STRING_START_END_SYMBOL,
BIBTEX_STRING_START_END_SYMBOL,
content);
}
}

if (pos1 > pivot) {
Expand Down
Loading