We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b988f46 commit f51a488Copy full SHA for f51a488
Sources/SwiftRichString/Style/StyleGroup.swift
@@ -264,14 +264,14 @@ public class StyleGroup: StyleProtocol {
264
removeTag(index: index, with: "\n")
265
continue
266
}
267
- guard let attribute = self.styles[tag.name] else { continue }
+
268
269
removeTag(index: index)
270
if let closeIndex = tag.endingTagIndex {
271
guard closeIndex < tagQueue.count else { continue }
272
let closingTag = tagQueue[closeIndex]
273
removeTag(index: closeIndex)
274
-
+ guard let attribute = self.styles[tag.name] else { continue }
275
let location = tag.range.location
276
let length = closingTag.range.location-location
277
let range = NSRange(location: location, length: length)
0 commit comments