Skip to content

Commit

Permalink
Backport 4330d94 Fixes #115: Remove whitespaces in serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
lenhard committed Aug 25, 2015
1 parent 03734d9 commit 18e55e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[dev_2.11]
- Backport from 2.80: Fixes #115: Remove whitespaces in serialization
- Backport from 2.80: Fixes Bug#1297: No console message on closing.
- Fix for bugs #1221 and #1261 (also partly #1243): order of fields in customized entry types no longer gets destroyed by the entry editor
- "ISBN to BibTeX" fetcher now uses eBook.de's API (fixes bug #1241)
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/sf/jabref/BibtexEntryWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private void writeNewStyle(BibtexEntry entry, Writer out) throws IOException {
for (String value : s) {
if (!written.containsKey(value)) { // If field appears both in req. and opt. don't repeat.
//writeField(s[i], out, fieldFormatter);
hasWritten = hasWritten | writeField(entry, out, value, hasWritten, hasWritten && first);
hasWritten = hasWritten | writeField(entry, out, value, hasWritten, false);
written.put(value, null);
first = false;
previous = true;
Expand All @@ -133,7 +133,7 @@ private void writeNewStyle(BibtexEntry entry, Writer out) throws IOException {
}
first = previous;
for (String field : remainingFields) {
hasWritten = hasWritten | writeField(entry, out, field, hasWritten, hasWritten && first);
hasWritten = hasWritten | writeField(entry, out, field, hasWritten, false);
first = false;
}

Expand Down Expand Up @@ -233,7 +233,7 @@ private void writeUserDefinedOrder(BibtexEntry entry, Writer out) throws IOExcep

first = previous;
for (String field : remainingFields) {
hasWritten = hasWritten | writeField(entry, out, field, hasWritten, hasWritten && first);
hasWritten = hasWritten | writeField(entry, out, field, hasWritten, false);
first = false;
}

Expand Down

0 comments on commit 18e55e6

Please sign in to comment.