GNOME Bugzilla – Bug 66457
export to TeX DVI via groff fails
Last modified: 2004-12-22 21:47:04 UTC
open gnumeric type 'Hello' into A1 save as TeX DVI via groff saving fails (the file contains only the sheet name) with the following console output: tbl:<standard input>:7: `.' not last character on line tbl:<standard input>:7: giving up on this table Line -- Unclosed block, footnote, or other diversion (|h) tbl:<standard input>:7: `.' not last character on line tbl:<standard input>:7: giving up on this table Line -- Unclosed block, footnote, or other diversion (|h) Obviously we can create DVI files by exporting as LaTeX and then run through latex and we can create PDF files by exporting as LaTeX and then run through pdflatex.
I tried to replicate this again and failed...at first. It seems to be related to file content. I am attaching a sample file. Strangely enough exporting it as groff file and then passing it to groff does not fail and the code looks identical to me.
Created attachment 6237 [details] failing example
Created attachment 6242 [details] simpler example (xml file)
can replicate this, but nothing obvious presents itself. As you point out Saving it as a roff file, then manually calling groff seems to work fine which is exactly what the code appears to be doing.
I don't know why, but suddenly it started failing for me even when I called groff manually. In fact that was a great help since it allowed me to track down the problem. PATCH is attached.
Created attachment 6304 [details] [review] proposed patch
Very mysterious. Please commit.
patch committed