summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconvert.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/convert.sh b/convert.sh
index be6dff3..a5373af 100755
--- a/convert.sh
+++ b/convert.sh
@@ -53,8 +53,8 @@ elif [ "$2" = 'tyzoid' ]; then
elif [ "$2" = 'html' ]; then
channel="$3"
sed -n '
- /^<font size="2">/{
- s@^<font size="2">(\([^)]\+\))</font><b> @\1 @
+ /^<span style="font-size: smaller">/{
+ s@^<span style="font-size: smaller">(\([^)]\+\))</span><b> @\1 @
/entered the room\.<\/b><br\/>$/{
s@^\(\S\+\) \(.*\S\) \[.*] entered the room\.<\/b><br\/>$@\1 --> | \2 has joined '"${channel}"' @
p
@@ -77,13 +77,13 @@ elif [ "$2" = 'html' ]; then
}
d
}
- \@</font> <b>\*\*\*\S\+</b></font> @{
- s@^<font color="#[0-9A-F]\{6\}"><font size="2">(\([^)]\+\))</font> <b>\*\*\*\(\S*\)</b></font> \(.*\)<br/>$@\1 * | \2 \3@
+ \@</span> <b>\*\*\*\S\+</b></span> @{
+ s@^<span style="color: #[0-9A-F]\{6\}"><span style="font-size: smaller">(\([^)]\+\))</span> <b>\*\*\*\(\S*\)</b></span> \(.*\)<br/>$@\1 * | \2 \3@
p
d
}
- /<font size="2">/{
- s@^<font color="#[0-9A-F]\{6\}"><font size="2">(\([^)]\+\))</font> <b>\(\S\+\):</b></font> @\1 \2 | @
+ /<span style="font-size: smaller">/{
+ s@^<span style="color: #[0-9A-F]\{6\}"><span style="font-size: smaller">(\([^)]\+\))</span> <b>\(\S\+\):</b></span> @\1 \2 | @
s@<br/>$@@
p
d