File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ extension HTMLKitUtilities {
4545 for openingRange in openElementRanges {
4646 let tag = html [ openingRange]
4747 result += tag
48- let closure = Self . defaultPreservedWhitespaceTags. contains ( tag) || preservingWhitespaceForTags. contains ( tag) ? appendAll : appendIfPreserved
48+ let closure = Self . defaultPreservedWhitespaceTags. contains ( tag) || preservingWhitespaceForTags. contains ( tag) ? appendAll : appendIfPermitted
4949 let closestClosingRange = closeElementRanges. first ( where: { $0. lowerBound > openingRange. upperBound } )
5050 if let nextOpeningRange = openElementRanges. getPositive ( openingRangeIndex + 1 ) {
5151 var i = openingRange. upperBound
@@ -95,7 +95,7 @@ extension HTMLKitUtilities {
9595 result += html [ i..< bound]
9696 i = bound
9797 }
98- fileprivate static func appendIfPreserved (
98+ fileprivate static func appendIfPermitted (
9999 html: String ,
100100 i: inout String . Index ,
101101 bound: String . Index ,
You can’t perform that action at this time.
0 commit comments