From: Steffen Nurpmeso <sdaoden@yandex.com>
To: tech@mdocml.bsd.lv
Subject: Re: Nested list spacing issue
Date: Mon, 10 Nov 2014 20:03:18 +0100 [thread overview]
Message-ID: <20141110190318.BxZAODsW%sdaoden@yandex.com> (raw)
In-Reply-To: <20141110174010.Dcr6rYrG%sdaoden@yandex.com>
[-- Attachment #1: Type: text/plain, Size: 669 bytes --]
Ehm, hello,
forget about this, this is an issue with mawk(1) which doesn't
properly (imho) fflush("") before END{}, resulting in partial
output which then irritates mandoc(1) (different to groff(1) which
passed over the "EOF" already in it's sequential processing):
?0[]$ awk -v TOC=Ss -f mdocmx.awk < mdocmx.7|mandoc|v
...
TABLE OF CONTENTS
SYNOPSIS
DESCRIPTION
Creating a table of contents
...
?0[]$ mawk -v TOC=Ss -f mdocmx.awk < mdocmx.7|mandoc|v
...
TABLE OF CONTENTS
DESCRIPTION
Creating a table of contents
...
I've sent a mail to Thomas Dickey regarding this.
Sorry for the noise.
--steffen
[-- Attachment #2: Original message content --]
[-- Type: message/rfc822, Size: 3706 bytes --]
From: Steffen Nurpmeso <sdaoden@yandex.com>
To: tech@mdocml.bsd.lv
Subject: Nested list spacing issue
Date: Mon, 10 Nov 2014 18:40:10 +0100
Message-ID: <20141110174010.Dcr6rYrG%sdaoden@yandex.com>
Hello,
I'm sure it's known but i can't find a TODO entry in cvs(1) HEAD:
suppose this
.Sh TABLE OF CONTENTS
.Bl -inset
.It Sx "DESCRIPTION"
.Bl -tag -offset indent
.It Sx "Creating a table of contents"
...
.El
...
.El
In groff v1.22.3 you will see
TABLE OF CONTENTS
DESCRIPTION
Creating a table of contents
but in mandoc v1.13.1 you get
TABLE OF CONTENTS
DESCRIPTION
Creating a table of contents
which i think lacks an initial vertical space when the .Bl is
opened? A different approach could be found below, but i don't
know if it's always like that (and am too lazy to evaluate).
--steffen
diff --git a/mandoc.1 b/mandoc.1
index 19c90f6..838ea51 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -1572,6 +1572,7 @@ macro in
.Fl T Ns Cm ascii
does not assert a prior vertical break, just as it doesn't with
.Sq \&Sh .
+Likewise the first item of a nested list won't assert a vertical break.
.It
The
.Sq \&na
--
To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv
next prev parent reply other threads:[~2014-11-10 19:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-10 17:40 Steffen Nurpmeso
2014-11-10 19:03 ` Steffen Nurpmeso [this message]
2014-11-10 22:06 ` Ingo Schwarze
2014-11-11 10:49 ` Steffen Nurpmeso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141110190318.BxZAODsW%sdaoden@yandex.com \
--to=sdaoden@yandex.com \
--cc=tech@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).