summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-29 13:58:18 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-29 13:58:18 +0000
commit497337adb4cbff663bffd46a9081e56a5ae7874e (patch)
treedf13807a3827ad67bfd2f574b5e880b584d0691e /mdoc_validate.c
parent1146ced33c4a59a115f352a3cd7c07344c04e746 (diff)
downloadmandoc-497337adb4cbff663bffd46a9081e56a5ae7874e.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 6aaddaa8..c8596140 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -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;