Skip to content

Commit e93c8df

Browse files
committed
Fix comment position
1 parent b004d05 commit e93c8df

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

jablib/src/main/java/org/jabref/logic/openoffice/style/JStyleGetCitationMarker.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,13 @@ private static String formatAuthorList(JStyle style,
141141
// emitAllAuthors == false means use "et al."
142142
boolean emitAllAuthors = (nAuthors <= maxAuthors) || (maxAuthors == -1);
143143

144-
int nAuthorsToEmit = emitAllAuthors
145-
? nAuthors
146-
// If we use "et al." maxAuthorsBeforeEtAl also limits the
147-
// number of authors emitted.
148-
: Math.min(maxAuthorsBeforeEtAl, nAuthors);
144+
int nAuthorsToEmit;
145+
if (emitAllAuthors) {
146+
nAuthorsToEmit = nAuthors;
147+
} else {
148+
// If we use "et al." maxAuthorsBeforeEtAl also limits the number of authors emitted.
149+
nAuthorsToEmit = Math.min(maxAuthorsBeforeEtAl, nAuthors);
150+
}
149151

150152
if (nAuthorsToEmit >= 1) {
151153
stringBuilder.append(style.getAuthorsPartMarkupBefore());

0 commit comments

Comments
 (0)