[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #59795] interaction of .na and '.ad l' documented incorrectly
From: |
G. Branden Robinson |
Subject: |
[bug #59795] interaction of .na and '.ad l' documented incorrectly |
Date: |
Sun, 24 Jan 2021 23:50:25 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
Follow-up Comment #11, bug #59795 (project groff):
[comment #10 comment #10:]
> It also smells a little funny to start right-adjusting if the adjustment
mode is out of range (that's what adjust_mode = 5 means). I'll have to see if
AT&T troff supported numeric adjustment modes; it is already known that V7
troff did not support the .j register.
Sigh.
V7 /usr/src/cmd/troff/n5.c:
casead(){
register i;
ad = 1;
/*leave admod alone*/
if(skip())return;
switch(i = getch() & CMASK){
case 'r': /*right adj, left ragged*/
admod = 2;
break;
case 'l': /*left adj, right ragged*/
admod = ad = 0; /*same as casena*/
break;
case 'c': /*centered adj*/
admod = 1;
break;
case 'b': case 'n':
admod = 0;
break;
case '0': case '2': case '4':
ad = 0;
case '1': case '3': case '5':
admod = (i - '0')/2;
}
}
casena(){
ad = 0;
}
Warden Leo Glynn is my spirit animal.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59795>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #59795] [PATCH] troff/env.cpp: fix wrong restoration of line adjustment after '.na' and '.ad', (continued)
- [bug #59795] [PATCH] troff/env.cpp: fix wrong restoration of line adjustment after '.na' and '.ad', G. Branden Robinson, 2021/01/18
- [bug #59795] [PATCH] troff/env.cpp: fix wrong restoration of line adjustment after '.na' and '.ad', G. Branden Robinson, 2021/01/18
- [bug #59795] [PATCH] troff/env.cpp: fix wrong restoration of line adjustment after '.na' and '.ad', Dave, 2021/01/21
- [bug #59795] [PATCH] troff/env.cpp: fix wrong restoration of line adjustment after '.na' and '.ad', Dave, 2021/01/21
- [bug #59795] interaction of .na and '.ad l' documented incorrectly, G. Branden Robinson, 2021/01/23
- [bug #59795] interaction of .na and '.ad l' documented incorrectly, G. Branden Robinson, 2021/01/23
- [bug #59795] interaction of .na and '.ad l' documented incorrectly, G. Branden Robinson, 2021/01/24
- [bug #59795] interaction of .na and '.ad l' documented incorrectly, G. Branden Robinson, 2021/01/24
- [bug #59795] interaction of .na and '.ad l' documented incorrectly, G. Branden Robinson, 2021/01/24
- [bug #59795] interaction of .na and '.ad l' documented incorrectly, G. Branden Robinson, 2021/01/24
- [bug #59795] interaction of .na and '.ad l' documented incorrectly,
G. Branden Robinson <=
- [bug #59795] interaction of .na and '.ad l' documented incorrectly, G. Branden Robinson, 2021/01/25
- [bug #59795] interaction of .na and '.ad l' documented incorrectly, G. Branden Robinson, 2021/01/27
- [bug #59795] interaction of .na and '.ad l' documented incorrectly, Dave, 2021/01/27
- [bug #59795] interaction of .na and '.ad l' documented incorrectly, G. Branden Robinson, 2021/01/28