From 2f3f8d50c12ee5eff9d6672b38d7c0710cfea741 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 5 Aug 2013 06:25:23 +0200 Subject: wikifmt: handle & as & in anchor name, cleanup --- sys/src/cmd/aux/wikifmt.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/src/cmd/aux/wikifmt.c b/sys/src/cmd/aux/wikifmt.c index 935dc40b2..08c7ba62b 100644 --- a/sys/src/cmd/aux/wikifmt.c +++ b/sys/src/cmd/aux/wikifmt.c @@ -190,20 +190,20 @@ heading(void) if((*pos >= 'a' && *pos <= 'z') || (*pos >= 'A' && *pos <= 'Z') || (*pos >= '0' && *pos <= '9') - || (strchr("!#$%&()_+,-./{|}~:;=?@[\\]^_`", *pos) != 0)) + || (strchr("!#$%()_+,-./{|}~:;=?@[\\]^_`", *pos) != 0)) output(pos, 1); else if(*pos == ' ' || *pos == '\t') output("_", 1); else if(*pos == '<') - output("<", 4); + string("<"); else if(*pos == '>') - output(">", 4); + string(">"); else if(*pos == '&') - output("&", 5); + string("&"); else if(*pos == '"') - output(""", 6); + string("""); else if(*pos == '\'') - output("'", 5); + string("'"); pos++; } string("\">"); -- cgit v1.2.3