[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #61477] [tbl] "nowarn" should suppress "table row will not fit warn
From: |
G. Branden Robinson |
Subject: |
[bug #61477] [tbl] "nowarn" should suppress "table row will not fit warning" as well |
Date: |
Sat, 13 Nov 2021 18:38:13 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
URL:
<https://savannah.gnu.org/bugs/?61477>
Summary: [tbl] "nowarn" should suppress "table row will not
fit warning" as well
Project: GNU troff
Submitted by: gbranden
Submitted on: Sat 13 Nov 2021 11:38:11 PM UTC
Category: Preprocessor tbl
Severity: 1 - Wish
Item Group: Warning/Suspicious behaviour
Status: Need Info
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
The tbl "nowarn" option within a .TS/.TE region disables 3 of the 4 possible
warnings that can be emitted when *roff formats the table. These 3 all have
to do with potential horizontal truncation or ugliness of the table.
The fourth has to do with _vertical_ truncation or ugliness, and is
unconditional.
Should the semantics of "nowarn" be broadened to cover this last type of
warning?
1880 ".if \\n[.t]<=\\n[" SAVED_DN_REG "] \\{\\\n"
1881 /* Since we turn off traps, it won't get into an infinite
1882 loop when we try and print it; it will just go off the
1883 bottom of the page. */
1884 ". tmc \\n[.F]: around line \\n[.c]: warning:\n"
1885 ". tm1 \" table row will not fit on page \\n%\n"
1886 ".\\}\n"
2170 if (!(flags & NOWARN)) {
2171 // protect ` and ' in warning message against eqn
2172 prints(".ig\n"
2173 ".EQ\n"
2174 "delim off\n"
2175 ".EN\n"
2176 "..\n");
2177 prints(".tmc \\n[.F]: around line \\n[.c]: warning:\n"
2178 ".tm1 \" table wider than line width\n");
2179 prints(".ig\n"
2180 ".EQ\n"
2181 "delim on\n"
2182 ".EN\n"
2183 "..\n");
2184 prints(".nr " EXPAND_REG " 0\n");
2185 }
2222 if (!(flags & NOWARN)) {
2223 // protect ` and ' in warning message against eqn
2224 prints(".ig\n"
2225 ".EQ\n"
2226 "delim off\n"
2227 ".EN\n"
2228 "..\n");
2229 prints(".tmc \\n[.F]: around line \\n[.c]: warning:\n"
2230 ".tm1 \" table column separation set to zero\n"
2231 ".nr " SEPARATION_FACTOR_REG " 0\n");
2232 }
2236 if (!(flags & NOWARN)) {
2237 prints(".tmc \\n[.F]: around line \\n[.c]: warning:\n"
2238 ".tm1 \" table squeezed horizontally to fit line length\n");
2239 prints(".ig\n"
2240 ".EQ\n"
2241 "delim on\n"
2242 ".EN\n"
2243 "..\n");
2244 }
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61477>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #61477] [tbl] "nowarn" should suppress "table row will not fit warning" as well,
G. Branden Robinson <=