diff --git a/transcripts/header-template.html b/transcripts/header-template.html index 8cbaf2d..c18458b 100644 --- a/transcripts/header-template.html +++ b/transcripts/header-template.html @@ -35,13 +35,13 @@ border: 2px solid brown; border-radius: 12px; } + .special .title { + font-variant-caps: small-caps; + } .heavy { font-weight: 700; } - .title { - font-variant-caps: small-caps; - } diff --git a/typeclasses/puppets.py b/typeclasses/puppets.py index 1dea005..b5789e2 100755 --- a/typeclasses/puppets.py +++ b/typeclasses/puppets.py @@ -239,12 +239,12 @@ class Shrub(Puppet): """ Convert the 'text' to an HTML formatted string. """ + # Yellow text should be italics: + text = sub(r"\|y(.*?)\|n", '\\1', text) # Bold and tag the titles: text = sub(r"\|[cb](.*?)\|n", '\\1', text) # Bold anything white: text = sub(r"\|w(.*?)\|n", '\\1', text) - # Yellow text should be italics: - text = sub(r"\|y(.*?)\|n", '\\1', text) # Remove the rest: text = sub(r"\|[A-z]", '', text) # Remove initial or final carriage returns: