Small refactoring for a more intuitive config.
This commit is contained in:
parent
e850900b40
commit
c81c8a62b3
|
@ -205,5 +205,5 @@ public final class Config {
|
||||||
// How deep nested quotes should be displayed. '2' means one quote nested in another.
|
// How deep nested quotes should be displayed. '2' means one quote nested in another.
|
||||||
public static final int QUOTE_MAX_DEPTH = 3;
|
public static final int QUOTE_MAX_DEPTH = 3;
|
||||||
// How deep nested quotes should be created on quoting a message.
|
// How deep nested quotes should be created on quoting a message.
|
||||||
public static final int QUOTING_MAX_DEPTH = QUOTE_MAX_DEPTH - 1;
|
public static final int QUOTING_MAX_DEPTH = QUOTE_MAX_DEPTH;
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ public class QuoteHelper {
|
||||||
if (isPositionQuoteCharacter(line, i)) {
|
if (isPositionQuoteCharacter(line, i)) {
|
||||||
nestingDepth++;
|
nestingDepth++;
|
||||||
}
|
}
|
||||||
if (nestingDepth > (Config.QUOTING_MAX_DEPTH)) {
|
if (nestingDepth > (Config.QUOTING_MAX_DEPTH - 1)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue