diff options
1 files changed, 5 insertions, 5 deletions
| -rw-r--r-- | ext/attention.awk | 10 |
diff --git a/ext/attention.awk b/ext/attention.awk index 9182635..85b7854 100644 --- a/ext/attention.awk +++ b/ext/attention.awk @@ -1,9 +1,9 @@ BEGIN { - define("question", open_attention("dialog-question.png")) - define("warn", open_attention("dialog-warning.png")) - define("important", open_attention("dialog-important.png")) + define_attention("question", "dialog-question.png") + define_attention("warn", "dialog-warning.png") + define_attention("important", "dialog-important.png") } -function open_attention(name, image) { - return "<p class=\"special-par " name "-par\"><img src=\"/img/" image "\" class=\"special-par-icon borderless unzoomable\" alt=\"" name "\">" +function define_attention(name, image) { + define(name, "<p class=\"special-par " name "-par\"><img src=\"/img/" image "\" class=\"special-par-icon borderless unzoomable\" alt=\"" name "\">") } |