Commit 9aa85228 authored by Fred Chasen's avatar Fred Chasen

Update double break fix only if no previous sibling

parent 9d3e6b04
......@@ -143,8 +143,9 @@ class Layout {
}
shouldBreak(node) {
let previousSibling = node.previousSibling;
let parentNode = node.parentNode;
let parentBreakBefore = needsBreakBefore(node) && parentNode && needsBreakBefore(parentNode);
let parentBreakBefore = needsBreakBefore(node) && parentNode && !previousSibling && needsBreakBefore(parentNode);
let doubleBreakBefore;
if (parentBreakBefore) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment