Skip to content

Commit

Permalink
Reintroduces a fix to avoid newlines at EoF.
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoreymendez committed Jun 19, 2017
1 parent 582a258 commit e054e88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Aztec/Classes/Libxml2/DOM/Data/ElementNode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ extension Libxml2 {
return true
}

return isLastInAncestorEndingInBlockLevelSeparation()
return !isLastInTree() && isLastInAncestorEndingInBlockLevelSeparation()
}

// MARK: - Node Queries
Expand Down
2 changes: 1 addition & 1 deletion Aztec/Classes/Libxml2/DOM/Data/TextNode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extension Libxml2 {
return true
}

return isLastInAncestorEndingInBlockLevelSeparation()
return !isLastInTree() && isLastInAncestorEndingInBlockLevelSeparation()
}

// MARK: - LeafNode
Expand Down

0 comments on commit e054e88

Please sign in to comment.