Tidied the transcript some more
This commit is contained in:
parent
bae082b249
commit
561af7dcdc
2 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -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", '<i>\\1</i>', text)
|
||||
# Bold and tag the titles:
|
||||
text = sub(r"\|[cb](.*?)\|n", '<b class="title">\\1</b>', text)
|
||||
# Bold anything white:
|
||||
text = sub(r"\|w(.*?)\|n", '<b class="heavy">\\1</b>', text)
|
||||
# Yellow text should be italics:
|
||||
text = sub(r"\|y(.*?)\|n", '<i">\\1</i>', text)
|
||||
# Remove the rest:
|
||||
text = sub(r"\|[A-z]", '', text)
|
||||
# Remove initial or final carriage returns:
|
||||
|
|
|
|||
Loading…
Reference in a new issue