wikifmt: handle & as & in anchor name, cleanup
This commit is contained in:
parent
98c6d867fd
commit
2f3f8d50c1
1 changed files with 6 additions and 6 deletions
|
@ -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>");
|
||||
|
|
Loading…
Reference in a new issue