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/