bugGNU roff - Bugs: bug #64239, [eqn] handle input leaders like...

 
 

bug #64239: [eqn] handle input leaders like input tabs

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Tue 23 May 2023 08:09:18 AM UTC
   
 
Category:  Preprocessor eqn Severity:  3 - Normal
Item Group:  Incorrect behaviour Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 23 May 2023 08:09:18 AM UTC, original submission:  

Input tab characters are rejected except at the "outermost" level of lexical grouping.  (eqn is not fooled by superfluous braces.)

Since leaders are pretty much "noisy" tabs, they should be handled similarly.


$ hd EXPERIMENTS/eqn-using-tab.roff
00000000  2e 45 51 0a 61 09 62 20  73 71 72 74 20 7b 20 63  |.EQ.a.b sqrt { c|
00000010  09 64 20 7d 0a 2e 45 4e  0a                       |.d }..EN.|
00000019
$ ./build/eqn -Tascii EXPERIMENTS/eqn-using-tab.roff >/dev/null
./build/eqn:EXPERIMENTS/eqn-using-tab.roff:1: error: tabs allowed only at outermost level
$ hd EXPERIMENTS/eqn-using-leader.roff
00000000  2e 45 51 0a 61 01 62 20  73 71 72 74 20 7b 20 63  |.EQ.a.b sqrt { c|
00000010  01 64 20 7d 0a 2e 45 4e  0a                       |.d }..EN.|
00000019
$ ./build/eqn -Tascii EXPERIMENTS/eqn-using-leader.roff >/dev/null
[bupkis; no diagnostic]


And indeed things go pretty wrong if you sneak a leader past eqn.


$ ./build/test-groff -e -Tascii EXPERIMENTS/eqn-using-leader.roff | cat -s
troff:EXPERIMENTS/eqn-using-leader.roff:20: warning: special character 'sqrt' not defined
troff:EXPERIMENTS/eqn-using-leader.roff:49: warning: special character 'rn' not defined
troff:EXPERIMENTS/eqn-using-leader.roff:2: error: invalid token in argument to escaped 'Z'
troff: error: horizontal line drawing character must have positive width
a.......bcd


The code change would happen around here.

G. Branden Robinson <gbranden>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code