aboutsummaryrefslogtreecommitdiff
path: root/emparse
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-07 20:58:10 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-08 15:37:54 +0200
commitb18302253c93727b28da8d128fbb204c21b62815 (patch)
tree557d473c742b57bd3101aaf512733c2c01466ec3 /emparse
parentcd943ef6b47b00c73b3b544fb3ecb07c91511f0d (diff)
downloadem-b18302253c93727b28da8d128fbb204c21b62815.tar.gz
Add UNIX support
Diffstat (limited to 'emparse')
-rwxr-xr-xemparse4
1 files changed, 2 insertions, 2 deletions
diff --git a/emparse b/emparse
index ed3a4c7..9594f82 100755
--- a/emparse
+++ b/emparse
@@ -191,9 +191,9 @@ function item(level, type, line) {
printf "<li>"
}
if (type == "ol") {
- match($0, "[0-9a-z]+\.")
+ match($0, "[0-9a-z]+\\.")
v = substr($0, RSTART, RLENGTH-1)
- sub("^ +[0-9a-z]+\. ", "")
+ sub("^ +[0-9a-z]+\\. ", "")
listvalid(v)
printf "<li value=\"%s\" style=\"list-style-type: %s\">", listnum(v), listtype(v)
}