in freemarker-docgen-core/src/main/java/org/freemarker/docgen/core/PrintTextWithDocgenSubstitutionsDirective.java [577:606]
private boolean skipLineBreak() {
int savedCursor = cursor;
// Skip horizontal whitespace
while (cursor < text.length()) {
char c = text.charAt(cursor);
if (c != ' ' && c != '\t' && c != '\u00A0') {
break;
}
cursor++;
}
// Skip line-break:
if (cursor < text.length()) {
char c = text.charAt(cursor);
if (c == '\n') {
cursor++;
return true;
}
if (c == '\r') {
cursor++;
if (cursor < text.length() && text.charAt(cursor) == '\n') {
cursor++;
}
return true;
}
}
cursor = savedCursor;
return false;
}