>.< should be quoteable (bugfix).

This commit is contained in:
Millesimus 2021-09-08 16:32:44 +02:00 committed by Daniel Gultsch
parent dfeeaff74c
commit 4d36231fa5

View file

@ -77,10 +77,10 @@ public class QuoteHelper {
} }
public static boolean isNestedTooDeeply (CharSequence line){ public static boolean isNestedTooDeeply (CharSequence line){
if (isPositionQuoteCharacter(line, 0)) { if (isPositionQuoteStart(line, 0)) {
int nestingDepth = 1; int nestingDepth = 1;
for (int i = 1; i < line.length(); i++) { for (int i = 1; i < line.length(); i++) {
if (isPositionQuoteCharacter(line, i)) { if (isPositionQuoteStart(line, i)) {
nestingDepth++; nestingDepth++;
} }
if (nestingDepth > (Config.QUOTING_MAX_DEPTH - 1)) { if (nestingDepth > (Config.QUOTING_MAX_DEPTH - 1)) {