diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-08-18 09:16:01 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-08-18 09:16:01 +0000 |
commit | 0592e18f12cd052071f1a3b6ced15bbf5d294224 (patch) | |
tree | ed588fd3ca6261d5eeed403ef93f666bd4bb9707 /mdoc_html.c | |
parent | 2255d868c1b152d143051be882758d3b55357300 (diff) | |
download | mandoc-0592e18f12cd052071f1a3b6ced15bbf5d294224.tar.gz mandoc-0592e18f12cd052071f1a3b6ced15bbf5d294224.tar.zst mandoc-0592e18f12cd052071f1a3b6ced15bbf5d294224.zip |
Align `-offset indent' and `D1' by forcing BLOCKQUOTE to have a 5ex
margin. This is dubious: the HTML4 spec specifically says that
BLOCKQUOTE shouldn't be abused for indentation, which is exactly what we
do. However, `D1' needs indentation and it's the only way to force text
browsers to do so. Alternatives?
Also remove the unused HALFINDENT defines while here.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r-- | mdoc_html.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mdoc_html.c b/mdoc_html.c index 56a0adcf..f33a438b 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.176 2011/08/18 09:02:22 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.177 2011/08/18 09:16:01 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -34,7 +34,6 @@ #include "main.h" #define INDENT 5 -#define HALFINDENT 3 #define MDOC_ARGS const struct mdoc_meta *m, \ const struct mdoc_node *n, \ @@ -353,10 +352,8 @@ a2offs(const char *p, struct roffsu *su) SCALE_HS_INIT(su, INDENT); else if (0 == strcmp(p, "indent-two")) SCALE_HS_INIT(su, INDENT * 2); - else if ( ! a2roffsu(p, su, SCALE_MAX)) { - su->unit = SCALE_BU; - su->scale = html_strlen(p); - } + else if ( ! a2roffsu(p, su, SCALE_MAX)) + SCALE_HS_INIT(su, html_strlen(p)); } |