diff options
author | wlemb <wlemb> | 2002-10-30 17:20:28 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2002-10-30 17:20:28 +0000 |
commit | 61fd50e578d27516fdcf76b5b4ee61c1b95d2ae7 (patch) | |
tree | 722506ed317c391ea941346674c3b127d86775eb /tmac/doc.tmac | |
parent | f7ce41b2b44ee10437eca77049789eb4e865108a (diff) | |
download | groff-61fd50e578d27516fdcf76b5b4ee61c1b95d2ae7.tar.gz |
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.
Diffstat (limited to 'tmac/doc.tmac')
-rw-r--r-- | tmac/doc.tmac | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tmac/doc.tmac b/tmac/doc.tmac index c872b093..589fcafe 100644 --- a/tmac/doc.tmac +++ b/tmac/doc.tmac @@ -2698,10 +2698,8 @@ . if \n[doc-display-indent-stack\n[doc-display-depth]] \ . in +\n[doc-display-indent-stack\n[doc-display-depth]]u . -. if !\n[doc-is-compact] \{\ -. br +. if !\n[doc-is-compact] \ . sp \n[doc-display-vertical]u -. \} . . if !\n[cR] \ . ne 2v @@ -3000,10 +2998,8 @@ . if "\*[doc-list-type-stack\n[doc-list-depth]]"column-list" \{\ . doc-set-column-tab \n[doc-num-columns] ' in -\n[doc-column-indent-width]u -. if !\n[doc-compact-list-stack\n[doc-list-depth]] \{\ -. br +. if !\n[doc-compact-list-stack\n[doc-list-depth]] \ . sp \n[doc-display-vertical]u -. \} . . nf . nr doc-num-columns 0 @@ -4015,10 +4011,8 @@ .\" NS doc-list-have-indent-stackXXX . .de doc-set-vertical-and-indent -. if !\n[doc-compact-list-stack\n[doc-list-depth]] \{\ -. br +. if !\n[doc-compact-list-stack\n[doc-list-depth]] \ . sp \n[doc-display-vertical]u -. \} . . if \n[doc-list-have-indent-stack\n[doc-list-depth]] \{\ . nr doc-list-have-indent-stack\n[doc-list-depth] 0 |