[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #46914] .ce sometimes ignores right margin
From: |
G. Branden Robinson |
Subject: |
[bug #46914] .ce sometimes ignores right margin |
Date: |
Sun, 23 Apr 2023 21:00:58 -0400 (EDT) |
Follow-up Comment #9, bug #46914 (project groff):
[comment #8 comment #8:]
> [comment #7 comment #7:]
> > This also makes sense as centering and filling are incompatible
> > goals.
>
> They aren't conceptually; this
> $ printf '.ce 2\nHello,\nworld!\n' | nroff | cat -s
> Hello,
> world!
> could have just as easily been designed to output
> Hello, world!
> but no roff ever written fills input lines while .ce is active, so the fact
that it _could_ have been done another way is a moot point.
Right. Filling and centering together are otherwise known as ".ad c".
I think Bjarni is right that fill _mode_ and the `ce` _request_ are mutually
exclusive, unless we can imagine some `ce`-with-filling variant that is useful
and more easily implemented in the formatter than with some specialized
macro.
> Is the purpose of this change to require the user to explicitly disable fill
mode before calling .ce? I disagree with that change,
I do too, _unless_ we can contrive some way .fi+.ce can populate output lines
that is useful, tractable to implement, and not duplicative of `.ad c`.
Right now my thinking is that fill mode plus `ce` is either not meaningful for
not worthwhile. (This is not true of the superficially similar `rj`.) The
formatter should therefore quietly suspend fill mode while counting `ce`
lines, and restore it (if it was active) when it runs out of lines to center.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?46914>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #46914] .ce sometimes ignores right margin, Bjarni Ingi Gislason, 2023/04/15
- [bug #46914] .ce sometimes ignores right margin, Dave, 2023/04/23
- [bug #46914] .ce sometimes ignores right margin,
G. Branden Robinson <=
- [bug #46914] .ce sometimes ignores right margin, G. Branden Robinson, 2023/04/23
- [bug #46914] .ce sometimes ignores right margin, Bjarni Ingi Gislason, 2023/04/29
- [bug #46914] .ce sometimes ignores right margin, G. Branden Robinson, 2023/04/29
- [bug #46914] breaking behavior inconsistent within a .ce block, Dave, 2023/04/29
- [bug #46914] breaking behavior inconsistent within a .ce block, G. Branden Robinson, 2023/04/30
- [bug #46914] breaking behavior inconsistent within a .ce block, Dave, 2023/04/30