wikifmt: fix trailing _ in heading name reference

This commit is contained in:
cinap_lenrek 2012-11-05 03:16:13 +01:00
parent 72679fd6cc
commit 120412a6a2

View file

@ -185,7 +185,8 @@ heading(void)
output("0123456"+n, 1);
string("><a name=\"");
o = pos;
while(pos < e){
s = trimback(e);
while(pos < s){
if((*pos >= 'a' && *pos <= 'z')
|| (*pos >= 'A' && *pos <= 'Z')
|| (*pos >= '0' && *pos <= '9')