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 {
45
45
for openingRange in openElementRanges {
46
46
let tag = html [ openingRange]
47
47
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
49
49
let closestClosingRange = closeElementRanges. first ( where: { $0. lowerBound > openingRange. upperBound } )
50
50
if let nextOpeningRange = openElementRanges. getPositive ( openingRangeIndex + 1 ) {
51
51
var i = openingRange. upperBound
@@ -95,7 +95,7 @@ extension HTMLKitUtilities {
95
95
result += html [ i..< bound]
96
96
i = bound
97
97
}
98
- fileprivate static func appendIfPreserved (
98
+ fileprivate static func appendIfPermitted (
99
99
html: String ,
100
100
i: inout String . Index ,
101
101
bound: String . Index ,
You can’t perform that action at this time.
0 commit comments