Applying fix from 2.0.1 to blockQuote and paragraph (fac23ef)

This commit is contained in:
Dimitry Ivanov 2018-12-02 14:02:04 +03:00
parent ca231ab2d8
commit b52de58fbd

View File

@ -125,10 +125,6 @@ public class CorePlugin extends AbstractMarkwonPlugin {
visitor.ensureNewLine(); visitor.ensureNewLine();
if (visitor.blockQuoteIndent() > 0) {
visitor.forceNewLine();
}
final int length = visitor.length(); final int length = visitor.length();
visitor.incrementBlockQuoteIndent(); visitor.incrementBlockQuoteIndent();
visitor.visitChildren(blockQuote); visitor.visitChildren(blockQuote);
@ -137,9 +133,7 @@ public class CorePlugin extends AbstractMarkwonPlugin {
if (visitor.hasNext(blockQuote)) { if (visitor.hasNext(blockQuote)) {
visitor.ensureNewLine(); visitor.ensureNewLine();
if (visitor.blockQuoteIndent() > 0) { visitor.forceNewLine();
visitor.forceNewLine();
}
} }
} }
}); });
@ -363,9 +357,7 @@ public class CorePlugin extends AbstractMarkwonPlugin {
if (!inTightList && visitor.hasNext(paragraph)) { if (!inTightList && visitor.hasNext(paragraph)) {
visitor.ensureNewLine(); visitor.ensureNewLine();
if (visitor.blockQuoteIndent() == 0) { visitor.forceNewLine();
visitor.forceNewLine();
}
} }
} }
}); });