[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 01/01: tmac/doc.tmac-u: Punctuation handling of .Lk fixed
From: |
Carsten Kunze |
Subject: |
[groff] 01/01: tmac/doc.tmac-u: Punctuation handling of .Lk fixed |
Date: |
Mon, 10 Apr 2017 16:42:59 -0400 (EDT) |
carstenkunze pushed a commit to branch master
in repository groff.
commit 2464569cae9e21a7bff31fa78b563f2502bec94f
Author: Ingo Schwarze <address@hidden>
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 <address@hidden>
+
+ * 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 <address@hidden>,
+ fixed by Ingo Schwarze <address@hidden>.
+
+ https://savannah.gnu.org/bugs/?50771
+
2017-04-07 Werner LEMBERG <address@hidden>
* 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:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 01/01: tmac/doc.tmac-u: Punctuation handling of .Lk fixed,
Carsten Kunze <=