URL: <https://savannah.gnu.org/bugs/?64300>
Summary: [troff] diagnose error when 'sp used when not on a page Group: GNU roff Submitter: gbranden Submitted: Mon 12 Jun 2023 09:31:41 PM UTC Category: Core Severity: 3 - Normal Item Group: Warning/Suspicious behaviour Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Mon 12 Jun 2023 09:31:41 PM UTC By: G. Branden Robinson <gbranden> $ cat EXPERIMENTS/no-break-sp-request-behavior-exhibit.roff 'sp 3v \" does nothing because not on a page yet: diagnose error? foo .br bar 'sp 3v baz $ nroff EXPERIMENTS/no-break-sp-request-behavior-exhibit.roff | cat -n | head 1 foo 2 3 4 5 bar baz 6 7 8 9 10 The formatter sullenly ignores a no-break `sp` request if the vertical drawing position is negative. This is _not_ what DWB or Heirloom Doctools nroff do. $ ./bin/nroff ./no-break-sp-request-behavior-exhibit.roff | cat -n | head 1 2 3 foo 4 5 6 bar baz 7 8 9 10 We should either align with them or throw an error and document the difference. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?64300> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/