[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug] \~ can overwrite previous text.
From: |
Alejandro Colomar |
Subject: |
[Bug] \~ can overwrite previous text. |
Date: |
Mon, 6 Mar 2023 14:16:02 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 |
Hi Branden!
I only tested this with groff 1.23.0, so I don't know if it's a regression
or a longstanding bug (I hope they aren't a renewable source? :p).
See the following source:
$ cat interval.man
.TH interval notation to-day experiments
.SH Description
What happens if we use interval notation,
with some formatting?
.RB [ 0 ,\~ USHRTrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrt_MAX ]
And make the terminal very short?
.IP
To make things worse, let's add indentation:
.RB [ 1 ,\~ USHRTrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrt_MAX ].
.RS 8
.PP
Let's see with a moved left margin:
.RB [ 2 ,\~ USHRTrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrt_MAX ].
.IP
Why not both things?
.RB [ 3 ,\~ USHRTrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrt_MAX ].
.IP
It seems to be independent of the margin of indentation,
but maybe with a different space things change:
.RB [ 4 ",\ " USHRTrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrt_MAX ].
.IP
Indeed, this last paragraph was better.
It seems top be a bug with \e\[ti].
.RE
See how it renders (admittedly, there are warnings):
$ groff --version | head -n1
GNU groff version 1.23.0.rc3.43-0221b
$ groff -man -Tutf8 -rLL=60n interval.man
troff:interval.man:5: warning [p 1, 0.7i]: cannot adjust line
troff:interval.man:5: warning [p 1, 0.8i]: cannot break line
troff:interval.man:9: warning [p 1, 1.5i]: cannot break line
troff:interval.man:13: warning [p 1, 2.0i]: cannot break line
troff:interval.man:16: warning [p 1, 2.5i]: cannot break line
troff:interval.man:20: warning [p 1, 3.3i]: cannot break line
interval(notation) interval(notation)
Description
What happens if we use interval notation, with some
formatting?
USHRTrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrt_MAX]
And make the terminal very short?
To make things worse, let’s add indentation:
USHRTrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrt_MAX].
Let’s see with a moved left margin:
USHRTrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrt_MAX].
Why not both things?
USHRTrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrt_MAX].
It seems to be independent of the mar‐
gin of indentation, but maybe with a
different space things change:
[4,
USHRTrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrt_MAX].
Indeed, this last paragraph was bet‐
ter. It seems top be a bug with \~.
experiments to‐day interval(notation)
Cheers,
Alex
--
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
OpenPGP_signature
Description: OpenPGP digital signature
- [Bug] \~ can overwrite previous text.,
Alejandro Colomar <=
- Re: [Bug] \~ can overwrite previous text., G. Branden Robinson, 2023/03/06
- Re: [Bug] \~ can overwrite previous text., Alejandro Colomar, 2023/03/06
- Re: [Bug] \~ can overwrite previous text., G. Branden Robinson, 2023/03/06
- Re: [Bug] \~ can overwrite previous text., Alejandro Colomar, 2023/03/06
- Re: [Bug] \~ can overwrite previous text., Alejandro Colomar, 2023/03/06
- Re: [Bug] \~ can overwrite previous text., G. Branden Robinson, 2023/03/07
- Re: [Bug] \~ can overwrite previous text., Alejandro Colomar, 2023/03/07