links2

links 2.15+ fork
git clone git://git.codemadness.org/links2
Log | Files | Refs | README

commit 28dc24c562ee14e2903f51ad89f4d622f66f2692
parent e70dc486d3b0be8727ddfd43e131678f739db98c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri,  4 May 2018 13:02:36 +0200

render: dont center h1 header line and forced margin

Diffstat:
html.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/html.c b/html.c @@ -923,6 +923,7 @@ static void html_fixed(unsigned char *a) static void html_invert(unsigned char *a) { struct rgb rgb; + get_js_events(a); memcpy(&rgb, &format_.fg, sizeof(struct rgb)); memcpy(&format_.fg, &format_.bg, sizeof(struct rgb)); @@ -1337,15 +1338,12 @@ static void html_h(int h, unsigned char *a) #endif par_format.align = AL_LEFT; if (h == 1) { - html_center(a); return; } html_linebrk(a); switch (par_format.align) { case AL_LEFT: - par_format.leftmargin = (h - 2) * 2; - par_format.rightmargin = 0; - break; + return; case AL_RIGHT: par_format.leftmargin = 0; par_format.rightmargin = (h - 2) * 2;