Skip to content

Commit

Permalink
CW#61: Handle line breaks before reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas authored and Nicolas committed Jan 31, 2021
1 parent b96abea commit 25a7ae5
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,7 @@ private boolean analyzeGroupOfTagsPunctuationAfter(
lastRefIndex - firstRefIndex + 1, separator);

// Check for possible punctuation before tags
tmpIndex = beginIndex - 1;
while ((tmpIndex >= 0) &&
(contents.charAt(tmpIndex) == ' ')) {
tmpIndex--;
}
tmpIndex = ContentsUtil.moveIndexBackwardWhileFound(contents, beginIndex - 1, " \n");
beginIndex = tmpIndex + 1;
boolean punctuationFoundBefore = false;
int punctuationBeforeIndex = tmpIndex;
Expand Down

0 comments on commit 25a7ae5

Please sign in to comment.