Skip to content

Commit

Permalink
Remove the trailing new-line character in autocompletions
Browse files Browse the repository at this point in the history
Solves issue imagej#232 which affected functions pulled from the doc html files.
The behaviour seems to have been inadvertedly introduced in merge imagej#220.
  • Loading branch information
ndefrancesco committed Dec 13, 2019
1 parent 6e34bfb commit ae0a65b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ private BasicCompletion makeListEntry(
headline = headline.substring(0, headline.length() - 2);
}

if (headline.endsWith("\n")) {
headline = headline.substring(0, headline.length() - 1);
}

return new BasicCompletion(provider, headline, null, description);
}

Expand Down

0 comments on commit ae0a65b

Please sign in to comment.