From 61fd50e578d27516fdcf76b5b4ee61c1b95d2ae7 Mon Sep 17 00:00:00 2001 From: wlemb Date: Wed, 30 Oct 2002 17:20:28 +0000 Subject: Fix computation of .trunc register. Additionally, its value (and the value of the .ne register) is now always set before entering the trap. * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and `needed_space' before calling `space'. (top_level_diversion::space): Remove special code for 'sp before the first page. Call `begin_page' with the discarded space as a parameter. (top_level_diversion::begin_page): Add optional parameter to set `truncated_space'. * src/roff/troff/div.h: Updated. * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and \n[.ne]. * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26. (LP): Remove superfluous call to `br'. * tmac/doc-common (doc-paragraph): Undo change 2002-10-26. * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto. --- tmac/doc-common | 1 - 1 file changed, 1 deletion(-) (limited to 'tmac/doc-common') diff --git a/tmac/doc-common b/tmac/doc-common index 8eafa0e1..0cc0ea17 100644 --- a/tmac/doc-common +++ b/tmac/doc-common @@ -615,7 +615,6 @@ .\" NS insert a paragraph . .de doc-paragraph -. br . sp \n[doc-paragraph-space]u . if !\n[cR] \ . ne 2 -- cgit v1.2.1