X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=sys%2Fsrc%2Fcmd%2Faux%2Fwikifmt.c;h=08c7ba62b00ccbc1ab8db1de685a8535ca9fd335;hb=c4b02ff9e6d86ae9522bcff4e847a88eb4336864;hp=935dc40b24692c2a6096bee0c1fd17543ee78d89;hpb=98c6d867fd1e874b756962575e2d9b30ca20ca1f;p=plan9front.git 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("\">");