1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-27 01:25:34 +00:00

Introduce otherman:[] macro for non-ELinks manpage references

.. avoids an unsafe AsciiDoc operation.
This commit is contained in:
Jonas Fonseca 2008-02-23 18:21:19 +01:00
parent fd10dac428
commit 9be36ed129
2 changed files with 14 additions and 5 deletions

View File

@ -37,6 +37,13 @@ squote=@squote@
{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
{0#</citerefentry>}
# No interlinking between elinks manpages
[otherman-inlinemacro]
{0%{target}}
{0#<citerefentry>}
{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
{0#</citerefentry>}
# 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}<a href="{target}.{0}.html">{target}({0})</a>
{eval:re.match("elinks", "{target}") == None}<b>{target}({0})</b>
<a href="{target}.{0}.html">{target}({0})</a>
[otherman-inlinemacro]
<b>{target}({0})</b>
# API Doc macros

View File

@ -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