1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

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

.. avoids an unsafe AsciiDoc operation.
(cherry picked from commit 9be36ed129)
This commit is contained in:
Jonas Fonseca 2008-02-23 18:21:19 +01:00 committed by Kalle Olavi Niemitalo
parent 46eeac0aeb
commit 06b34ef5ac
2 changed files with 14 additions and 5 deletions

View File

@ -28,6 +28,13 @@ squote=@squote@
{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>} {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
{0#</citerefentry>} {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 # For manpages use less verbose linking
ifdef::doctype-manpage[] ifdef::doctype-manpage[]
[link-inlinemacro] [link-inlinemacro]
@ -54,7 +61,9 @@ squote='
# Use the man:[] macro to link between elinks manpages # Use the man:[] macro to link between elinks manpages
[man-inlinemacro] [man-inlinemacro]
{eval:re.match("elinks", "{target}") != None}<a href="{target}.{0}.html">{target}({0})</a> <a href="{target}.{0}.html">{target}({0})</a>
{eval:re.match("elinks", "{target}") == None}<b>{target}({0})</b>
[otherman-inlinemacro]
<b>{target}({0})</b>
endif::backend-xhtml11[] endif::backend-xhtml11[]

View File

@ -78,7 +78,7 @@ HOME::
WWW_HOME:: WWW_HOME::
Homepage location (as in man:lynx[1]). Homepage location (as in otherman:lynx[1]).
FILES FILES
----- -----
@ -167,8 +167,8 @@ was done by Jonas Fonseca mailto:fonseca@diku.dk[].
SEE ALSO SEE ALSO
-------- --------
man:elinkskeys[5], man:elinks.conf[5], man:links[1], man:lynx[1], man:w3m[1], man:elinkskeys[5], man:elinks.conf[5], otherman:links[1], otherman:lynx[1],
man:wget[1] otherman:w3m[1], otherman:wget[1]
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////
# vim: tabstop=4 shiftwidth=4 textwidth=76 # vim: tabstop=4 shiftwidth=4 textwidth=76