Re: [man BUG] SY/YS doesn't break the line before the first cmd arg

2025-06-06 Thread Alejandro Colomar
Hi Branden! On Fri, Jun 06, 2025 at 01:06:31PM -0500, G. Branden Robinson wrote: > Hello again Alex, [...] > Here's how your reproducer formats now (in my working copy). > > $ ./build/test-groff -ww -rCHECKSTYLE=3 -man -Tutf8 ./ATTIC/alex.man > an.tmac:./ATTIC/alex.man:1: style: .TH missing fi

Re: [man BUG] SY/YS doesn't break the line before the first cmd arg

2025-06-06 Thread G. Branden Robinson
+.I suffix +is present, +.I "groff man" +sets the next word after it without intervening space. +. If a break is required in subsequent text (up to a paragraphing, sectioning, diff --git a/tmac/tests/an-ext_SY-and-YS-work.sh b/tmac/tests/an-ext_SY-and-YS-work.sh index 71d1199eb..d3c7d3b1

Re: Is a paragraph consisting solely of SY/YS empty?

2025-06-06 Thread Alejandro Colomar
> > > > alx@devuan:~/tmp$ cat pp.man > > .TH A 7 2025-06-06 f > > .SH g > > foo > > .P > > .SY foo > > bar > > baz > > .YS > > alx@devuan:~/tmp$ mandoc -Tlint -man pp.man > > mandoc

Re: Is a paragraph consisting solely of SY/YS empty?

2025-06-05 Thread Ingo Schwarze
6-06 f > .SH g > foo > .P > .SY foo > bar > baz > .YS > alx@devuan:~/tmp$ mandoc -Tlint -man pp.man > mandoc: pp.man:4:2: WARNING: skipping paragraph macro: PP empty I can confirm that still happens with mandoc -current

Is a paragraph consisting solely of SY/YS empty?

2025-06-05 Thread Alejandro Colomar
ing to pass the usual linters. mandoc(1) is complaining: alx@devuan:~/tmp$ cat pp.man .TH A 7 2025-06-06 f .SH g foo .P .SY foo bar baz .YS alx@devuan:~/tmp$ mandoc -Tlint -man pp.man mandoc: pp.man:4:2: WARN

Re: [man BUG] SY/YS doesn't break the line before the first cmd arg

2025-06-05 Thread G. Branden Robinson
Hi Alex, At 2025-06-05T16:04:17+0200, Alejandro Colomar wrote: > I met a bug in SY/YS. Here's a reproducer: > > alx@devuan:~/tmp$ cat syys.man > .TH a s d f > .SH g > .SY foo > bar > .YS . > .SY foo

[man BUG] SY/YS doesn't break the line before the first cmd arg

2025-06-05 Thread Alejandro Colomar
Hi Branden, I met a bug in SY/YS. Here's a reproducer: alx@devuan:~/tmp$ cat syys.man .TH a s d f .SH g .SY foo bar .YS . .SY fooo br bz q

Re: Nested SY/YS

2024-12-01 Thread G. Branden Robinson
Hi Alex, At 2024-12-01T15:17:22+0100, Alejandro Colomar wrote: > I was wondering if it would be good to nest SY/YS. > > What do you think of this?: > > .SY void\~*bsearch ( > .BI const\~void\~ key [. size ], > .BI const\~void\~ base [. size \~*\~. n ], > .BI si

Nested SY/YS

2024-12-01 Thread Alejandro Colomar
Hi Branden, I was wondering if it would be good to nest SY/YS. What do you think of this?: .SY void\~*bsearch ( .BI const\~void\~ key [. size ], .BI const\~void\~ base [. size \~*\~. n ], .BI size_t\~ n , .BI size_t\~ size , .br -.BI int\~(* compar )(const\~void\~[. size ], +.SY int\~(*\f

Re: YS .

2024-07-13 Thread Alejandro Colomar
On Sat, Jul 13, 2024 at 10:46:17AM GMT, G. Branden Robinson wrote: > Hi Alex, Hi Branden, > At 2024-07-13T17:38:17+0200, Alejandro Colomar wrote: > > > Try the attached patches. > > > > They don't seem to apply. > > Alas, that's life when you're not on my working copy. :-) > You'll have to >

Re: YS .

2024-07-13 Thread G. Branden Robinson
Hi Alex, At 2024-07-13T17:38:17+0200, Alejandro Colomar wrote: > > Try the attached patches. > > They don't seem to apply. Alas, that's life when you're not on my working copy. You'll have to either chop out the changes to ChangeLog, or wait for me to push. That may be as soon as today, since

Re: YS .

2024-07-13 Thread Alejandro Colomar
Try the attached patches. They don't seem to apply. Applying: Test `YS` macro harder. error: patch failed: ChangeLog:1 error: ChangeLog: patch does not apply Patch failed at 0001 Test `YS` macro harder. hint: Use 'git am --show-current-patch=diff' to see the failed patch hint: When y

Re: YS .

2024-07-13 Thread G. Branden Robinson
1 From: "G. Branden Robinson" Date: Sat, 13 Jul 2024 09:57:08 -0500 Subject: [PATCH 1/2] [man]: Test `YS` macro harder. * tmac/tests/an-ext_SY-and-YS-work.sh: Test new behavior of `YS` when given an argument. Test fails at this commit. --- ChangeLog | 5

Re: YS .

2024-07-13 Thread G. Branden Robinson
Hi Alex, At 2024-07-13T15:23:19+0200, Alejandro Colomar wrote: > Was the trailing dummy string for YS to allow alignment finally merged? Yes, sort of--it seems I managed to screw it up. On top of that I wrote a particularly dumb test for it. .B int .SY a2s ( .B TYPE, .BI TYPE\~*restrict\

YS .

2024-07-13 Thread Alejandro Colomar
Hi Branden, Was the trailing dummy string for YS to allow alignment finally merged? I built groff(1) from git HEAD and lost that functionality. Below is the head of a manual page for libs, a string library that I'm writing: $ cat stpeprintf.3 .\" Copyright 2024

Re: man page .SY/.YS synopsis .OP HTML output breaks long options between hyphens

2023-03-23 Thread Alejandro Colomar
Hi Branden, On 3/23/23 22:22, G. Branden Robinson wrote: > Hi Brian, > > At 2023-03-16T19:39:27-0600, Brian Inglis wrote: >> Output of man pages with lengthy synopses from grohtml do not disable >> adjustment and hyphenation as for tty, breaking long options between >> the hyphens and anywhere el

Re: man page .SY/.YS synopsis .OP HTML output breaks long options between hyphens

2023-03-23 Thread G. Branden Robinson
At 2023-03-23T16:22:51-0500, G. Branden Robinson wrote: > I am attaching the [...] output from groff compiled from the tip of the > 'branden-post-1.23.0' Git branch, Today I learned that the GNU mailing list management software strips HTML attachments. Let me know if you need it. Regards, Brande

Re: man page .SY/.YS synopsis .OP HTML output breaks long options between hyphens

2023-03-23 Thread G. Branden Robinson
Hi Brian, At 2023-03-16T19:39:27-0600, Brian Inglis wrote: > Output of man pages with lengthy synopses from grohtml do not disable > adjustment and hyphenation as for tty, breaking long options between > the hyphens and anywhere else available. [snip] I cannot reproduce this problem with groff Gi

man page .SY/.YS synopsis .OP HTML output breaks long options between hyphens

2023-03-16 Thread Brian Inglis
B\-\-sheetname sheetname .OP \-i\fR|\fB\-\-ignoreempty .OP \-\-skipemptycolumns .OP \-p\fR|\fB\-\-sheetdelimiter sheetdelimiter .OP \-q\fR|\fB\-\-quoting quoting .OP \-s\fR|\fB\-\-sheetid sheetid .OP \-\-include\-hidden\-rows .I xlsxfile .RI [ outfile ] .SY xlsx2csv .BR \-h | \-\-help .SY xlsx2csv

Re: [groff] .SY/.YS, was: Duff's Device

2018-06-28 Thread G. Branden Robinson
presentational markup when output to PostScript * allows semantic analysis * is portable ..."[1] > Please, Branden, bring us good ideas. Discovering the .SY/.YS and .OP > macros made my SYNOPSIS sections much more consistent. Yes, I had a > couple of cases where .OP does

Re: [groff] .SY/.YS, was: Duff's Device

2018-06-27 Thread Nate Bargmann
* On 2018 27 Jun 11:52 -0500, G. Branden Robinson wrote: > > I'm still hoping that at some point, we may be able to get the > > groff manual pages at least half-portable, even though that may > > still be a long way. Use of .SY/.YS is a major step backwards. > >

Re: [groff] .SY/.YS, was: Duff's Device

2018-06-27 Thread G. Branden Robinson
At 2018-06-27T16:13:09+0200, Ingo Schwarze wrote: > Hi Branden, > > G. Branden Robinson wrote on Wed, Jun 27, 2018 at 09:16:18AM -0400: > > > I'm in the midst of preparing a commit to make sure all the groff > > man pages have Synopsis sections that (1) use .

[groff] .SY/.YS, was: Duff's Device

2018-06-27 Thread Ingo Schwarze
Hi Branden, G. Branden Robinson wrote on Wed, Jun 27, 2018 at 09:16:18AM -0400: > I'm in the midst of preparing a commit to make sure all the groff > man pages have Synopsis sections that (1) use .SY and .YS (and .OP > where feasible), Must you really do that? I'm still