Article View: comp.text
Article #1841Re: tbl problem (groff-0.5 gtbl)
From: James Clark
Date: Mon, 24 Sep 1990 21:24
Date: Mon, 24 Sep 1990 21:24
68 lines
2228 bytes
2228 bytes
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
Technical Details
Message-ID:
<JJC.90Sep24222447@jclark.jclark.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!slxsys!jclark!jjcReferences:
<5134@hemuli.tik.vtt.fi>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!slxsys!jclark!jjc From: jjc@jclark.UUCP (James Clark) Newsgroups: comp.text Subject: Re: tbl problem (groff-0.5 gtbl) Message-ID: <JJC.90Sep24222447@jclark.jclark.UUCP> Date: 24 Sep 90 21:24:47 GMT References: <5134@hemuli.tik.vtt.fi> Sender: jjc@jclark.uucp (James Clark) Distribution: comp Organization: None, London, England Lines: 68 In-Reply-To: Markku.Savela@tel.vtt.fi's message of 24 Sep 90 12:36:29 GMT