From 9be36ed1298ae7071599d8c9359b1552b5f0b513 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sat, 23 Feb 2008 18:21:19 +0100 Subject: [PATCH] Introduce otherman:[] macro for non-ELinks manpage references .. avoids an unsafe AsciiDoc operation. --- doc/asciidoc.conf | 13 +++++++++++-- doc/elinks.1.txt | 6 +++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/doc/asciidoc.conf b/doc/asciidoc.conf index ac0afaeb..b98a10f5 100644 --- a/doc/asciidoc.conf +++ b/doc/asciidoc.conf @@ -37,6 +37,13 @@ squote=@squote@ {0#{target}{0}} {0#} +# No interlinking between elinks manpages +[otherman-inlinemacro] +{0%{target}} +{0#} +{0#{target}{0}} +{0#} + # For manpages use less verbose linking ifdef::doctype-manpage[] [link-inlinemacro] @@ -63,8 +70,10 @@ squote=' # Use the man:[] macro to link between elinks manpages [man-inlinemacro] -{eval:re.match("elinks", "{target}") != None}{target}({0}) -{eval:re.match("elinks", "{target}") == None}{target}({0}) +{target}({0}) + +[otherman-inlinemacro] +{target}({0}) # API Doc macros diff --git a/doc/elinks.1.txt b/doc/elinks.1.txt index 237176d2..493eb79f 100644 --- a/doc/elinks.1.txt +++ b/doc/elinks.1.txt @@ -78,7 +78,7 @@ HOME:: WWW_HOME:: - Homepage location (as in man:lynx[1]). + Homepage location (as in otherman:lynx[1]). FILES ----- @@ -167,8 +167,8 @@ was done by Jonas Fonseca mailto:fonseca@diku.dk[]. SEE ALSO -------- -man:elinkskeys[5], man:elinks.conf[5], man:links[1], man:lynx[1], man:w3m[1], -man:wget[1] +man:elinkskeys[5], man:elinks.conf[5], otherman:links[1], otherman:lynx[1], +otherman:w3m[1], otherman:wget[1] //////////////////////////////////////////////////////////////////////////// # vim: tabstop=4 shiftwidth=4 textwidth=76