bed5d4f4fb
"1) rtf-tools has its own way of switching between symbols and normal characters when converting to groff. This patch fixes rtf-tools to honor the assumption that the \plain command resets to the normal font. This unscrambles the formatting of some RTF->groff documents. http://msdn.microsoft.com/library/specs/rtfspec_16.htm#rtfspec_fontcharformat only mentions resetting font format properties, not the font itself. It also says that the default properties are application-specific. 2) rtf-tools specifies the column separation for every column. Since it is meaningless for the last column of a table, the tbl command outputs messages to stderr. This patch removes column separation from the last column of the table to keep groff quiet."
15 lines
453 B
Text
15 lines
453 B
Text
$NetBSD: patch-af,v 1.1 2001/05/31 11:06:01 agc Exp $
|
|
|
|
--- rtf2troff/trf-table.c.orig Wed May 16 18:24:58 2001
|
|
+++ rtf2troff/trf-table.c Wed May 16 18:26:07 2001
|
|
@@ -120,7 +120,9 @@
|
|
if (i > 0)
|
|
cwid -= its->cellPos[i-1];
|
|
cwid -= EnWidth ();
|
|
- fprintf (f, "l1w(%gi) ", cwid);
|
|
+ fprintf (f, "l%sw(%gi) ",
|
|
+ (i + 1 == its->nCells) ? "" : "1",
|
|
+ cwid);
|
|
}
|
|
if ((p = VCellBorderStr (VCellBorderType (its->nCells)))
|
|
!= (char *) NULL)
|