Skip to content

Commit f51a488

Browse files
fixes 79
1 parent b988f46 commit f51a488

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftRichString/Style/StyleGroup.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,14 +264,14 @@ public class StyleGroup: StyleProtocol {
264264
removeTag(index: index, with: "\n")
265265
continue
266266
}
267-
guard let attribute = self.styles[tag.name] else { continue }
267+
268268

269269
removeTag(index: index)
270270
if let closeIndex = tag.endingTagIndex {
271271
guard closeIndex < tagQueue.count else { continue }
272272
let closingTag = tagQueue[closeIndex]
273273
removeTag(index: closeIndex)
274-
274+
guard let attribute = self.styles[tag.name] else { continue }
275275
let location = tag.range.location
276276
let length = closingTag.range.location-location
277277
let range = NSRange(location: location, length: length)

0 commit comments

Comments
 (0)