summaryrefslogtreecommitdiffstats
path: root/mdoc_man.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc_man.c')
-rw-r--r--mdoc_man.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mdoc_man.c b/mdoc_man.c
index 6995f872..f6ee541d 100644
--- a/mdoc_man.c
+++ b/mdoc_man.c
@@ -435,6 +435,8 @@ print_offs(const char *v, int keywords)
else if (keywords && !strcmp(v, "indent-two"))
sz = 12;
else if (a2roffsu(v, &su, SCALE_EN) > 1) {
+ if (su.scale < 0.0)
+ su.scale = 0.0;
if (SCALE_EN == su.unit)
sz = su.scale;
else {
@@ -482,6 +484,8 @@ print_width(const char *v, const struct mdoc_node *child, size_t defsz)
if (NULL == v)
sz = defsz;
else if (a2roffsu(v, &su, SCALE_MAX) > 1) {
+ if (su.scale < 0.0)
+ su.scale = 0.0;
if (SCALE_EN == su.unit)
sz = su.scale;
else {