Re: mdoc.7: fix Dd example

2019-05-21 Thread Ingo Schwarze
Hi Klemens, Jason McIntyre wrote on Sun, May 19, 2019 at 08:58:35PM +0100: > On Sun, May 19, 2019 at 09:52:39PM +0200, Klemens Nanni wrote: >> On Sun, May 19, 2019 at 07:31:19PM +0100, Jason McIntyre wrote: >>> no. just use $Mdocdate$ and it gets expanded on commit. just like >>> when you add

Re: mdoc.7: fix Dd example

2019-05-19 Thread Jason McIntyre
On Sun, May 19, 2019 at 09:52:39PM +0200, Klemens Nanni wrote: > On Sun, May 19, 2019 at 07:31:19PM +0100, Jason McIntyre wrote: > > no. just use $Mdocdate$ and it gets expanded on commit. just like when > > you add $OpenBSD$: you don;t fill that in, right? > OK, will do so. No, I'll just wite

Re: mdoc.7: fix Dd example

2019-05-19 Thread Klemens Nanni
On Sun, May 19, 2019 at 07:31:19PM +0100, Jason McIntyre wrote: > no. just use $Mdocdate$ and it gets expanded on commit. just like when > you add $OpenBSD$: you don;t fill that in, right? OK, will do so. No, I'll just wite `$OpenBSD$'. > use $Mdocdate$ and let expansion happen, or just use the

Re: mdoc.7: fix Dd example

2019-05-19 Thread Jason McIntyre
On Sun, May 19, 2019 at 08:19:09PM +0200, Klemens Nanni wrote: > jmc noted that I didn't include my actual line, so here it is. > ah! > First I was using only > > .Dd $Mdocdate$ > > but that warned me > > mandoc: ./files/varnishreload.1:2:2: WARNING: missing date, using >

Re: mdoc.7: fix Dd example

2019-05-19 Thread Klemens Nanni
jmc noted that I didn't include my actual line, so here it is. First I was using only .Dd $Mdocdate$ but that warned me mandoc: ./files/varnishreload.1:2:2: WARNING: missing date, using today's date so I did what I was told, according to mdoc(7) .Dd $Mdocdate: May

mdoc.7: fix Dd example

2019-05-19 Thread Klemens Nanni
The example seems to have an extranous comma, which mandoc(1)'s `-T lint' warns about: $ man mdoc | col -b | grep 'document date' Dd document date: $Mdocdate$ | month day, year $ mandoc -Tlint ./files/varnishreload.1 mandoc: