summaryrefslogtreecommitdiff
path: root/sys/src/cmd/mothra/rdhtml.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-07-07 15:13:07 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-07-07 15:13:07 +0200
commit67541baee8f611e0515021fd6034a2e9bfada6ab (patch)
treefd9665e1e290aaebba51cce0673f4f8654420201 /sys/src/cmd/mothra/rdhtml.c
parent115f14f1446cd1df75f35b885ca594ff61402568 (diff)
mothra: fix <br/> <hr/> tags
Diffstat (limited to 'sys/src/cmd/mothra/rdhtml.c')
-rw-r--r--sys/src/cmd/mothra/rdhtml.c5
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;