Markku.Savela@tel.vtt.fi (Markku Savela) (09/24/90)
When I try to enter the appended table definition I get "Failed assertion..." message from the gtbl. If I change the lines "c s c s c s" into "c c c c c c", all goes fine, except the output is not quite what I want (yes, I'm trying to draw a simple tree structure with tbl -- just learning things, not ready to dig into "pic" just for this simple thing, which should be possible to do with tbl). [maybe I don't understand tbl yet, so if this is an obvious thing, reply with mail, also I'm a bit uncertain how to count TABS on those lines that have "s", but I have tried all variations, gtbl seems to barf before it gets to the data lines]. groff -t -ms tbltest.txt > test.tmp gtbl: Failed assertion at line 1237, file `table.c'. ---tbltest.txt--- .TS center,tab (@); c s s s s s c c c | c c c c _ _ _ _ c c | c c | c c | c c s c s c s c | c c c c | c c s c s c s. R @@ @@ @@ GC@@C@@HFR @@ C@@@@HF .TE ---------end tbltest.txt -- Markku Savela | savela@tel.vtt.fi Technical Research Centre of Finland | Telecommunications Laboratory | Markku.Savela@vtt.fi Otakaari 7 B, SF-02150 ESPOO, Finland | savela%vtttel@router.funet.fi
jjc@jclark.UUCP (James Clark) (09/25/90)
In article <5134@hemuli.tik.vtt.fi> Markku.Savela@tel.vtt.fi (Markku Savela) writes:
When I try to enter the appended table definition
I get "Failed assertion..." message from the gtbl.
...
groff -t -ms tbltest.txt > test.tmp
gtbl: Failed assertion at line 1237, file `table.c'.
---tbltest.txt---
.TS
center,tab (@);
c s s s s s
c c c | c c c
c _ _ _ _ c
c | c c | c c | c
c s c s c s
c | c c c c | c
c s c s c s.
R
@@
@@
@@
GC@@C@@HFR
@@
C@@@@HF
.TE
---------end tbltest.txt
If you get a failed assertion from any of the programs in groff, then
that's a bug in groff (unless it's a bug in your compiler). The best
way to make sure that the bug gets fixed is to report it to
bug-groff@prep.ai.mit.edu including the information requested in the
BUG-REPORT file.
As it happens, I've already fixed this bug: just delete the line
containing the assertion (line 1237 of tbl/table.c).
also I'm a bit uncertain how to count TABS
on those lines that have "s"
If a column in a format line contains an `s', then you should not
supply a corresponding column in the data line. Also your first line
centers the `R' within the entire width of the table; it would look
slightly better if you centered it within the middle two columns.
You could write your table like this:
.TS
center,tab (@);
c c c s c c
c c c | c c c
c _ _ _ _ c
c | c c | c c | c
c s c s c s
c | c c c c | c
c s c s c s.
@@R
@
@
@
GC@C@HFR
@
C@@HF
.TE
James Clark
jjc@jclark.uucp
jjc@ai.mit.edu