URL: <https://savannah.gnu.org/bugs/?66447>
Summary: page break caused by .ne behaves differently from .bp Group: GNU roff Submitter: None Submitted: Fri 15 Nov 2024 05:10:58 PM UTC Category: Core Severity: 3 - Normal Item Group: Incorrect behaviour Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Fri 15 Nov 2024 05:10:58 PM UTC By: Anonymous Copyright (C) 1999-2020, 2022 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. groff Bug Report GROFF VERSION: 1.23.0 I can test it against git HEAD if anyone tells me how to compile it without texinfo. PLATFORM: Linux 6.3.13_2 #1 SMP PREEMPT_DYNAMIC Sun Oct 1 20:21:07 UTC 2023 x86_64 GNU/Linux CONFIGURATION REPORT: I doubt the output of my distro's package manager would be very helpful as it doesn't mention the parameters used to build it. The only useful thing it mentions is: source-revisions: groff:20c6682913 Here is the distro's build system's current template for groff: # Template file for 'groff' pkgname=groff version=1.23.0 revision=1 build_style=gnu-configure configure_args="--without-x --disable-rpath" hostmakedepends="perl bison ghostscript" makedepends="zlib-devel" short_desc="GNU troff text-formatting system" maintainer="Enno Boland <got...@voidlinux.org>" license="GPL-3.0-or-later" homepage="https://www.gnu.org/software/groff/groff.html" changelog="https://git.savannah.gnu.org/cgit/groff.git/plain/NEWS" distfiles="${GNU_SITE}/groff/groff-${version}.tar.gz" checksum=6b9757f592b7518b4902eb6af7e54570bdccba37a871fddb2d30ae3863511c13 if [ "$CROSS_BUILD" ]; then hostmakedepends+=" groff" make_build_args+=" GROFFBIN=/usr/bin/groff GROFF_BIN_PATH=/usr/bin" fi post_install() { # From Arch: # # Fix some issues when encoding to utf8 man pages # The output chars don't match keyboard chars... for f in man mdoc; do cat ${FILESDIR}/site.tmac >> \ ${DESTDIR}/usr/share/groff/site-tmac/${f}.local done } INPUT FILES: ne.tr COMMAND LINE: groff -b -ww -Tpdf -P-pa5 ne.tr > ne.pdf DESCRIPTION OF INCORRECT BEHAVIOUR: .bp causes line break before breaking a page, while .ne doesn't. This behavior can be observed in the PDF output at the end of pages 1 and 2. I have turned off hyphenating at the end of the page, so the fact there is hyphenation there also clearly shows something is wrong. You can compare .ne's behavior against .bp by replacing the marked .p macro calls with calls to the .BP macro. SUGGESTED FIX: Ensure .ne breaks line before breaking the page. _______________________________________________________ File Attachments: ------------------------------------------------------- Name: ne.tr Size: 9KiB <https://file.savannah.gnu.org/file/ne.tr?file_id=56616> AGPL NOTICE These attachments are served by Savane. You can download the corresponding source code of Savane at https://savannah.gnu.org/source/savane-1244e09a07b90ebd06e62b37af5eb73c3662cbfb.tar.gz _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?66447> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature