diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-29 13:58:18 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-29 13:58:18 +0000 |
commit | dbf0764647f6b56bbb229562292e5a01705778af (patch) | |
tree | 05de7efb36208710968732fad5d2c15f6949e99a /mdoc_validate.c | |
parent | 09d8ae540417e00bfa6ee4c17de85c9f9d89a570 (diff) | |
download | mandoc-dbf0764647f6b56bbb229562292e5a01705778af.tar.gz mandoc-dbf0764647f6b56bbb229562292e5a01705778af.tar.zst mandoc-dbf0764647f6b56bbb229562292e5a01705778af.zip |
Partial implementation of .Bd -centered.
In groff, .Bd -centered operates in fill mode, which is relatively
hard to implement, while this implementation operates in non-fill
mode so far. As long as you pay attention that your lines do not
overflow, it works. To make sure that rendering is the same for
mandoc and groff, it is recommended to insert .br between lines
for now. This implementation will need improvement later.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index 9e52365a..a122ac3b 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.230 2014/07/07 16:12:20 schwarze Exp $ */ +/* $Id: mdoc_validate.c,v 1.231 2014/07/29 13:58:18 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org> @@ -802,7 +802,7 @@ pre_bd(PRE_ARGS) switch (argv->arg) { case MDOC_Centred: - dt = DISP_centred; + dt = DISP_centered; break; case MDOC_Ragged: dt = DISP_ragged; |