From: schwarze Date: Sat, 18 Aug 2018 17:06:58 +0000 (+0000) Subject: .SY causes a one-column indentation even without any argument X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4bc559411032076dc10678b7b5836c9bf5744c38;p=openbsd .SY causes a one-column indentation even without any argument --- diff --git a/usr.bin/mandoc/man_term.c b/usr.bin/mandoc/man_term.c index f48c09ceabc..4a64e1a7423 100644 --- a/usr.bin/mandoc/man_term.c +++ b/usr.bin/mandoc/man_term.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man_term.c,v 1.171 2018/08/18 14:25:55 schwarze Exp $ */ +/* $OpenBSD: man_term.c,v 1.172 2018/08/18 17:06:58 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze @@ -870,7 +870,7 @@ pre_SY(DECL_ARGS) } nn = n->parent->head->child; - len = nn == NULL ? 0 : term_strlen(p, nn->string) + 1; + len = nn == NULL ? 1 : term_strlen(p, nn->string) + 1; switch (n->type) { case ROFFT_HEAD: