diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-07-07 15:13:07 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-07-07 15:13:07 +0200 |
commit | 67541baee8f611e0515021fd6034a2e9bfada6ab (patch) | |
tree | fd9665e1e290aaebba51cce0673f4f8654420201 /sys/src/cmd/mothra/rdhtml.c | |
parent | 115f14f1446cd1df75f35b885ca594ff61402568 (diff) |
mothra: fix <br/> <hr/> tags
Diffstat (limited to 'sys/src/cmd/mothra/rdhtml.c')
-rw-r--r-- | sys/src/cmd/mothra/rdhtml.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/src/cmd/mothra/rdhtml.c b/sys/src/cmd/mothra/rdhtml.c index 717f4430e..1a4b33f18 100644 --- a/sys/src/cmd/mothra/rdhtml.c +++ b/sys/src/cmd/mothra/rdhtml.c @@ -344,7 +344,8 @@ char *pl_white(char *s){ char *pl_word(char *s){ if ('a'<=*s && *s<='z' || 'A'<=*s && *s<='Z') { s++; - while('a'<=*s && *s<='z' || 'A'<=*s && *s<='Z' || '0'<=*s && *s<='9' || *s=='-' || *s=='.') s++; + while('a'<=*s && *s<='z' || 'A'<=*s && *s<='Z' || '0'<=*s && *s<='9' || + *s=='-' || *s=='.' || *s==':') s++; } return s; } @@ -376,7 +377,7 @@ void pl_tagparse(Hglob *g, char *str){ if(str[0]=='/') str++; name=str; s=pl_word(str); - if(*s!=' ' && *s!='\n' && *s!='\t' && *s!='\0'){ + if(*s!='/' && *s!=' ' && *s!='\n' && *s!='\t' && *s!='\0'){ htmlerror(g->name, g->lineno, "bad tag name in %s", str); ap->name=0; return; |