gbranden pushed a commit to branch master in repository groff. commit 45f6f84a297bc9ad61569f9b4f7ce75ea229b6cd Author: G. Branden Robinson <g.branden.robin...@gmail.com> AuthorDate: Fri Mar 21 15:34:04 2025 -0500
[tbl]: Regression-test Savannah #66931. * src/preproc/tbl/tests/emit-accurate-lf-requests.sh: Do it. * src/src/preproc/tbl/tbl.am (tbl_TESTS): Run test. Test fails at this commit. --- ChangeLog | 7 ++++ src/preproc/tbl/tbl.am | 1 + src/preproc/tbl/tests/emit-accurate-lf-requests.sh | 37 ++++++++++++++++++++++ 3 files changed, 45 insertions(+) diff --git a/ChangeLog b/ChangeLog index ab1b997cc..f741fc026 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2025-03-21 G. Branden Robinson <g.branden.robin...@gmail.com> + + [tbl]: Regression-test Savannah #66931. + + * src/preproc/tbl/tests/emit-accurate-lf-requests.sh: Do it. + * src/src/preproc/tbl/tbl.am (tbl_TESTS): Run test. + 2025-03-21 G. Branden Robinson <g.branden.robin...@gmail.com> [troff]: Warn on failure to adjust the output line. diff --git a/src/preproc/tbl/tbl.am b/src/preproc/tbl/tbl.am index dc7ff08bf..af7ecedaa 100644 --- a/src/preproc/tbl/tbl.am +++ b/src/preproc/tbl/tbl.am @@ -36,6 +36,7 @@ tbl_TESTS = \ src/preproc/tbl/tests/do-not-overlap-bottom-border-in-nroff.sh \ src/preproc/tbl/tests/do-not-segv-on-invalid-vertical-span-entry.sh \ src/preproc/tbl/tests/do-not-segv-when-backslash-R-in-text-block.sh \ + src/preproc/tbl/tests/emit-accurate-lf-requests.sh \ src/preproc/tbl/tests/expand-region-option-works.sh \ src/preproc/tbl/tests/format-time-diagnostics-work.sh \ src/preproc/tbl/tests/horizontal-rules-not-drawn-too-long.sh \ diff --git a/src/preproc/tbl/tests/emit-accurate-lf-requests.sh b/src/preproc/tbl/tests/emit-accurate-lf-requests.sh new file mode 100755 index 000000000..84fcd4005 --- /dev/null +++ b/src/preproc/tbl/tests/emit-accurate-lf-requests.sh @@ -0,0 +1,37 @@ +#!/bin/sh +# +# Copyright (C) 2025 Free Software Foundation, Inc. +# +# This file is part of groff. +# +# groff is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free +# Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# groff is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + +tbl="${abs_top_builddir:-.}/tbl" + +# Regression-test Savannah #66931. +# +# When writing out a file name argument to the `lf` request, ensure that +# the line number isn't always set to "1". + +input='. +.TS +L. +foo +.TE +.' + +echo "$input" | "$tbl" | grep '^\.lf [2-9][0-9]* "..*' + +# vim:set ai et sw=4 ts=4 tw=72: _______________________________________________ groff-commit mailing list groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit