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.
|
||||
public static final int QUOTE_MAX_DEPTH = 3;
|
||||
// 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)) {
|
||||
nestingDepth++;
|
||||
}
|
||||
if (nestingDepth > (Config.QUOTING_MAX_DEPTH)) {
|
||||
if (nestingDepth > (Config.QUOTING_MAX_DEPTH - 1)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue