bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #59795] [PATCH] troff/env.cpp: fix wrong restoration of line adjust


From: Dave
Subject: [bug #59795] [PATCH] troff/env.cpp: fix wrong restoration of line adjustment after '.na' and '.ad'
Date: Thu, 21 Jan 2021 04:23:05 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #4, bug #59795 (project groff):

Thanks, Branden.  I asked because this report didn't make it entirely clear to
me what the problem was.

The example in bug #55579--showing the results of the adjustment, not just the
value of the .j register--better highlights the difference between what groff
does and what the Texinfo says.  According to the .na section, .na "won't
change the current adjustment mode: A subsequent call to 'ad' uses the
previous adjustment setting."  The 55579 example shows a subsequent call to
'ad' using something other than the previous (pre-.na) adjustment setting.

What the 55579 example doesn't show (but is easy to verify with a
single-character edit to it) is that any other adjustment mode besides "l"
_is_ remembered after an .na call.  ".ad l" is the exception.

Even if that is historical troff practice, it's a weird incongruity hard to
justify on any other grounds.  But it should at least be documented if it
stays that way.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59795>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]