mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-27 09:21:21 +01:00
Style(tag:) -> Style(forTag:)
This commit is contained in:
parent
fcbfce4ace
commit
8006d816a9
@ -104,8 +104,8 @@ extension NSAttributedString {
|
|||||||
case strikethrough
|
case strikethrough
|
||||||
case monospace
|
case monospace
|
||||||
|
|
||||||
init?(tag: String) {
|
init?(forTag: String) {
|
||||||
switch tag {
|
switch forTag {
|
||||||
case "b", "strong":
|
case "b", "strong":
|
||||||
self = .bold
|
self = .bold
|
||||||
case "i", "em", "cite":
|
case "i", "em", "cite":
|
||||||
@ -174,7 +174,7 @@ extension NSAttributedString {
|
|||||||
result.mutableString.append(delimiter ?? "\"")
|
result.mutableString.append(delimiter ?? "\"")
|
||||||
}
|
}
|
||||||
|
|
||||||
if let style = Style(tag: tag) {
|
if let style = Style(forTag: tag) {
|
||||||
currentStyles.insert(style)
|
currentStyles.insert(style)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -184,7 +184,7 @@ extension NSAttributedString {
|
|||||||
quoteDepth -= 1
|
quoteDepth -= 1
|
||||||
}
|
}
|
||||||
|
|
||||||
if let style = Style(tag: tag) {
|
if let style = Style(forTag: tag) {
|
||||||
currentStyles.remove(style)
|
currentStyles.remove(style)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user