Skip to content

Commit 446bca5

Browse files
Merge pull request #1190 from wordpress-mobile/issue/empty_blockquotes
Make sure that standalone block elements are kept.
2 parents 0caa361 + fff3d47 commit 446bca5

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)