carstenkunze pushed a commit to branch master in repository groff. commit 2464569cae9e21a7bff31fa78b563f2502bec94f Author: Ingo Schwarze <schwa...@usta.de> Date: Mon Apr 10 22:41:24 2017 +0200
tmac/doc.tmac-u: Punctuation handling of .Lk fixed The implementation of the groff_mdoc(7) .Lk (hyperlink) macro contains code to make sure that the second argument is not punctuation before treating it as a link text, but the test can never lead to the result "punctuation" because the initialization of the global variable doc-width was missing before the call to doc-get-arg-type. Consequently, even "." was not recognized as punctuation. --- ChangeLog | 17 +++++++++++++++++ tmac/doc.tmac-u | 1 + 2 files changed, 18 insertions(+) diff --git a/ChangeLog b/ChangeLog index e31668a..8db9574 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,20 @@ +2017-04-10 Ingo Schwarze <schwa...@usta.de> + + * tmac/doc.tmac-u: Punctuation handling of .Lk fixed + + The implementation of the groff_mdoc(7) .Lk (hyperlink) macro + contains code to make sure that the second argument is not + punctuation before treating it as a link text, but the test + can never lead to the result "punctuation" because the + initialization of the global variable doc-width was missing + before the call to doc-get-arg-type. Consequently, even "." + was not recognized as punctuation. + + Problem reported by Anthony Bentley <bent...@openbsd.org>, + fixed by Ingo Schwarze <schwa...@usta.de>. + + https://savannah.gnu.org/bugs/?50771 + 2017-04-07 Werner LEMBERG <w...@gnu.org> * tmac/hyphenex.us: Updated to current release from TeXLive. diff --git a/tmac/doc.tmac-u b/tmac/doc.tmac-u index 8f9f90f..71c6846 100644 --- a/tmac/doc.tmac-u +++ b/tmac/doc.tmac-u @@ -6454,6 +6454,7 @@ . ds doc-str-Lk Sy \$@ . . ie (\n[.$] > 1) \{\ +. doc-get-width "\$2" . doc-get-arg-type \$2 . ie (\n[doc-arg-type] < 3) \{\ . Em \)\$2: _______________________________________________ Groff-commit mailing list Groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit