mothra: treat <div> as <p>
This commit is contained in:
parent
03324ced4f
commit
e6935a3c4b
3 changed files with 3 additions and 0 deletions
|
@ -136,6 +136,7 @@ enum{
|
|||
Tag_cite,
|
||||
Tag_code,
|
||||
Tag_dd,
|
||||
Tag_div,
|
||||
Tag_dfn,
|
||||
Tag_dir,
|
||||
Tag_dl,
|
||||
|
|
|
@ -25,6 +25,7 @@ Tag tag[]={
|
|||
[Tag_dd] "dd", NOEND, /* OPTEND */
|
||||
[Tag_dfn] "dfn", END,
|
||||
[Tag_dir] "dir", END,
|
||||
[Tag_div] "div", NOEND, /* OPTEND */
|
||||
[Tag_dl] "dl", END,
|
||||
[Tag_dt] "dt", NOEND, /* OPTEND */
|
||||
[Tag_em] "em", END,
|
||||
|
|
|
@ -910,6 +910,7 @@ void plrdhtml(char *name, int fd, Www *dst){
|
|||
break;
|
||||
}
|
||||
break;
|
||||
case Tag_div:
|
||||
case Tag_p:
|
||||
pl_linespace(&g);
|
||||
g.linebrk=1;
|
||||
|
|
Loading…
Reference in a new issue