-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
String transforms #275
String transforms #275
Conversation
9c0cfce
to
748d9d8
Compare
@@ -173,7 +174,21 @@ extension StringStyle { | |||
return attributedString |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#? @KingOfBrian this is working, but how? If we return here, we won't ever get to the transform. I built this the other night, and everything seems to be working, but I can't see how.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The XML Builder will call this again and again as it builds the XML string.
Sources/XMLBuilder.swift
Outdated
func foundNew(string theString: String) { | ||
let newAttributedString = topStyle.attributedString(from: theString) | ||
attributedString.append(newAttributedString) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be able to pull more logic in here, a bunch of duplication below.
Fixes #26.