From 797b2aa69aeb7db607250bad83d31a31f8f4d1c7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 21 Mar 2013 16:37:48 +0100 Subject: [PATCH] texinfo: Allow markup in the arguments of `@pxref'. * module/texinfo.scm (texi-command-specs)[pxref]: Change to `INLINE-TEXT-ARGS'. * test-suite/tests/texinfo.test ("test-texinfo->stexinfo")["@pxref{Locales, @code{setlocale}}"]: New test. --- module/texinfo.scm | 3 ++- test-suite/tests/texinfo.test | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/module/texinfo.scm b/module/texinfo.scm index edee5b397..cb7a775d4 100644 --- a/module/texinfo.scm +++ b/module/texinfo.scm @@ -216,7 +216,8 @@ lambda. Only present for @code{INLINE-ARGS}, @code{EOL-ARGS}, (value INLINE-ARGS . (key)) (ref INLINE-ARGS . (node #:opt name section info-file manual)) (xref INLINE-ARGS . (node #:opt name section info-file manual)) - (pxref INLINE-ARGS . (node #:opt name section info-file manual)) + (pxref INLINE-TEXT-ARGS + . (node #:opt name section info-file manual)) (url ALIAS . uref) (uref INLINE-ARGS . (url #:opt title replacement)) (anchor INLINE-ARGS . (name)) diff --git a/test-suite/tests/texinfo.test b/test-suite/tests/texinfo.test index 9776f8902..ebe46717f 100644 --- a/test-suite/tests/texinfo.test +++ b/test-suite/tests/texinfo.test @@ -416,4 +416,7 @@ (name "foo") (arguments "bar " (code "baz")))) (para "text that should be in a para"))) + (test-body "@pxref{Locales, @code{setlocale}}" + '((para (pxref (% (node "Locales") + (name (code "setlocale"))))))) ) -- 2.20.1