[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
document formatting warning fixes
From: |
Ruslan Ermilov |
Subject: |
document formatting warning fixes |
Date: |
Wed, 13 Dec 2000 17:04:25 +0200 |
User-agent: |
Mutt/1.2.5i |
GROFF VERSION:
1.16.1
MACHINE:
i386
OS:
FreeBSD 4.2-STABLE
COMPILER:
gcc version 2.95.2 19991024 (release)
DESCRIPTION OF INCORRECT BEHAVIOUR:
Some FreeBSD documents produce ``indent cannot be negative'' warnings
with -Tascii device. Some produce ``macro T& is not defined''.
SUGGESTED FIX:
Index: tbl/table.cc
===================================================================
RCS file: /home/ncvs/src/contrib/groff/tbl/table.cc,v
retrieving revision 1.1.1.3
diff -u -p -r1.1.1.3 table.cc
--- tbl/table.cc 2000/12/05 18:49:39 1.1.1.3
+++ tbl/table.cc 2000/12/07 08:11:32
@@ -1631,7 +1631,7 @@ void table::print()
compute_widths();
if (!(flags & CENTER))
prints(".if \\n[" SAVED_CENTER_REG "] \\{");
- prints(".in +(u;\\n[.l]-\\n[.i]-\\n[TW]/2)\n"
+ prints(".in +(u;\\n[.l]-\\n[.i]-\\n[TW]/2>?-\\n[.i])\n"
".nr " SAVED_INDENT_REG " \\n[.i]\n");
if (!(flags & CENTER))
prints(".\\}\n");
Index: tmac/tmac.e
===================================================================
RCS file: /home/ncvs/src/contrib/groff/tmac/tmac.e,v
retrieving revision 1.4
diff -u -p -r1.4 tmac.e
--- tmac/tmac.e 2000/01/12 10:26:30 1.4
+++ tmac/tmac.e 2000/12/07 08:11:32
@@ -983,6 +983,8 @@
.sp \\n(bsu+\\n(.Lv-1v
.re
..
+.de T&
+..
.\"
.\" REFER
.\"
@@ -1108,7 +1110,7 @@ in \\f2\\*([B\\f1, \c
.de PS \" *** start picture: $1=height, $2=width in units or inches
.sp 0.3
.nr g7 \\$2
-.in (\\n(.lu-\\n(g7u)/2u
+.in (u;\\n(.l-\\n(g7>?0/2)
.ne \\$1u
.nr g7 \\n(.u
.ls 1
Index: tmac/tmac.s
===================================================================
RCS file: /home/ncvs/src/contrib/groff/tmac/tmac.s,v
retrieving revision 1.1.1.2
diff -u -p -r1.1.1.2 tmac.s
--- tmac/tmac.s 2000/12/05 18:49:22 1.1.1.2
+++ tmac/tmac.s 2000/12/07 08:11:32
@@ -898,7 +898,7 @@ Foundation, 59 Temple Place - Suite 330,
.ie '\\n(.z'ds*div' \{\
. di
. nf
-. in (u;\\n[.l]-\\n[dl]/2)
+. in (u;\\n[.l]-\\n[dl]/2>?0)
. ds*div
. rm ds*div
. ds*common-end
@@ -953,7 +953,7 @@ Foundation, 59 Temple Place - Suite 330,
. br
. di
. nf
-. in (u;\\n[.l]-\\n[dl]/2)
+. in (u;\\n[.l]-\\n[dl]/2>?0)
. address@hidden \\n[dn]
. ds*div
. rm ds*div
--
Ruslan Ermilov Oracle Developer/DBA,
address@hidden Sunbay Software AG,
address@hidden FreeBSD committer,
+380.652.512.251 Simferopol, Ukraine
http://www.FreeBSD.org The Power To Serve
http://www.oracle.com Enabling The Information Age
- document formatting warning fixes,
Ruslan Ermilov <=