Skip to content

Commit 3dcfe6a

Browse files
committed
Make sure that standalone block elements are kept.
1 parent f71dd29 commit 3dcfe6a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Aztec/Classes/Libxml2/DOM/Data/ElementNode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public class ElementNode: Node {
255255
/// - Returns: Returns `true` if it can be the last one, false otherwise.
256256
///
257257
func canBeLastInTree() -> Bool {
258-
return hasAttributes() || type == .li
258+
return hasAttributes() || isBlockLevel()
259259
}
260260

261261
/// Find out if this is a block-level element.

0 commit comments

Comments
 (0)