git: 9front

Download patch

ref: 07342571b646f1c889aa314aba5fb152449b82a9
parent: ff2ce77f7bb4eef8e0b64b44110a60816191ec29
author: stanley lieber <stanley.lieber@gmail.com>
date: Tue Nov 8 15:07:02 EST 2011

mothra: treat <div> as <br> instead of <p>

--- a/sys/src/cmd/mothra/rdhtml.c
+++ b/sys/src/cmd/mothra/rdhtml.c
@@ -776,6 +776,7 @@
 			g.state->indent=20;
 			g.spacc=0;
 			break;
+		case Tag_div:
 		case Tag_br:
 			g.spacc=0;
 			g.linebrk=1;
@@ -910,7 +911,6 @@
 				break;
 			}
 			break;
-		case Tag_div:
 		case Tag_p:
 			pl_linespace(&g);
 			g.linebrk=1;
--