Skip to content

Instantly share code, notes, and snippets.

@nbness2
Last active November 22, 2018 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nbness2/f0fcbb48bb74bfa7da3670b6b84f8ac0 to your computer and use it in GitHub Desktop.
Save nbness2/f0fcbb48bb74bfa7da3670b6b84f8ac0 to your computer and use it in GitHub Desktop.
val changelog20181122 = TEXTBOX {
+"Changes to Tags and TagBuilders"
+listTag {
+listItem("No more specifying when to use newlines. Newlines are now ALWAYS added BEFORE a string (+\"string\") when using builder syntax. I decided to go with this rather than explicitly specifying automatic newlines because it honestly makes more visual sense.")
+listItem("Because of the above change, NewlineIdentifier class (the gay ass bool wrapper) has been removed")
+listItem("One-liner tags are easier to create. Now you would use something like "+italicText("listItem(\"http://www.google.com\")")+" rather than "+ italicText("listItem { -newlineBefore; -newlineAfter; +\"http://www.google.com/\" }"))
+listItem("The above change was enabled by adding an initialization parameter to FullTagBuilder as well as adding a few .invoke constructors to TypedTag")
+listItem("Fixed a bug with FullTag.toString(String) putting the given string in both the tag AND making it the tagged text. oops lol.")
+listItem("Updated main post bbcode using the newer syntax. Shouldn't be able to see a difference!")
}
+("Gist link to DSL for this comment (requires updated Tags and TagBuilder which can be found at the bottom of the main post): "+justUrl("https://gist.github.com/nbness2/f0fcbb48bb74bfa7da3670b6b84f8ac0"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment