about summary refs log tree commit diff stats
path: root/jimmy
diff options
context:
space:
mode:
Diffstat (limited to 'jimmy')
-rwxr-xr-xjimmy5
1 files changed, 4 insertions, 1 deletions
diff --git a/jimmy b/jimmy index 74cef29..aa79183 100755 --- a/jimmy +++ b/jimmy
@@ -41,7 +41,10 @@ BEGIN { # configuration
41 linefmt["header", 3] = "<h3>%s</h3>\n" 41 linefmt["header", 3] = "<h3>%s</h3>\n"
42 isblock["link"] = 0 42 isblock["link"] = 0
43 linefmt["link"] = "<a href=\"%s\">%s</a>\n" 43 linefmt["link"] = "<a href=\"%s\">%s</a>\n"
44 # escapes 44 # escapes -- TODO: rethink these.
45 ## I think the best solution is to have a pair of arrays --
46 ## esc_orig and esc_repl. These will have keys in the
47 ## [n, block] format to keep them straight.
45 esc["verbatim", 0, "&"] = "\\&amp;" 48 esc["verbatim", 0, "&"] = "\\&amp;"
46 esc["verbatim", 8, "<"] = "\\&lt;" 49 esc["verbatim", 8, "<"] = "\\&lt;"
47 esc["verbatim", 9, ">"] = "\\&gt;" 50 esc["verbatim", 9, ">"] = "\\&gt;"