bug-groff
[Top][All Lists]
Advanced

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

[bug #59604] [ms] wrong .IP indentation after .SH 1 with .nr PSINCR 3p,


From: G. Branden Robinson
Subject: [bug #59604] [ms] wrong .IP indentation after .SH 1 with .nr PSINCR 3p, .nr GROWPS 3
Date: Thu, 10 Jun 2021 23:43:00 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #3, bug #59604 (project groff):

Here's a more minimal reproducing case.

An additional ingredient is required to make the bug obvious; an explicit
indentation argument is required on multiple .IP paragraphs after the .SH.

You can leave out the explicit indentation argument to the second .IP call,
and good style would suggest that you do, since it's redundant--.IP
indentation amounts are reused until a sectioning or a different paragraph
macro is called (as recently explicitly noted in our ms documentation; see
commits f40318205 and 021ba0e71).

However, exercising good style makes the bug harder to see; in that case,
groff ms does indeed re-use the indentation amount--the wrongly-computed
computed one based on the type size of the heading instead of that of the
paragraph text.  groff ms has, therefore, been _consistently_ incorrect, and
it takes a style _faux pas_ to reveal the problem.

This confluence of factors might explain why this bug went unreported for many
years (I guess since the introduction of the PSINCR/GROWPS feature in 2004).


.nr PSINCR 3p
.nr GROWPS 3
.SH 1
Text
.IP 1. 4
Filling
.IP 2. 4
Sentences


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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