diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-08-05 06:25:23 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-08-05 06:25:23 +0200 |
commit | 2f3f8d50c12ee5eff9d6672b38d7c0710cfea741 (patch) | |
tree | 4cb28194e65b98a6a3db4f9b55b46b1f74dfa644 | |
parent | 98c6d867fd1e874b756962575e2d9b30ca20ca1f (diff) | |
download | plan9front-2f3f8d50c12ee5eff9d6672b38d7c0710cfea741.tar.xz |
wikifmt: handle & as & in anchor name, cleanup
-rw-r--r-- | sys/src/cmd/aux/wikifmt.c | 12 |
1 files 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("\"></a>"); |