links2

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

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

render: <pre> dont use forced margin

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

diff --git a/html.c b/html.c @@ -1369,13 +1369,7 @@ static void html_pre(unsigned char *a) unsigned char *cl; format_.attr |= AT_FIXED; par_format.align = !par_format.implicit_pre_wrap ? AL_NO : AL_NO_BREAKABLE; - par_format.leftmargin = par_format.leftmargin > 1; par_format.rightmargin = par_format.leftmargin; - if ((cl = get_attr_val(a, cast_uchar "class"))) { - if (strstr(cast_const_char cl, "bz_comment")) /* hack */ - par_format.align = AL_NO_BREAKABLE; - mem_free(cl); - } } static void html_div(unsigned char *a)