[Buildroot] [PATCH 3 of 4 for 2014.08] manual-text: make sure URLs are displayed if a link text was provided

Thomas De Schampheleire patrickdepinguin at gmail.com
Tue Aug 12 10:56:02 UTC 2014


On Sun, Aug 10, 2014 at 8:35 PM, Thomas De Schampheleire
<patrickdepinguin at gmail.com> wrote:
> When the asciidoc source contain URLs of the form:
>     http://example.com[An example website]
> the text representation of the manual would only contain:
>     An example website
> without displaying the actual URL.
>
> This patch adds an asciidoc configuration file that sets the inline macros
> for several URL types so that the display becomes:
>     An example website [http://example.com]
> For URLs where no link text was provided, the display becomes:
>     [http://example.com]
> which is the same as before, except for the surrounding brackets.
>
> Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
>
> ---
>  docs/manual/asciidoc-text.conf |  13 +++++++++++++
>  1 files changed, 13 insertions(+), 0 deletions(-)
>
> diff -r 6e36b7e6851b -r a891fa8b7ca9 docs/manual/asciidoc-text.conf
> --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
> +++ b/docs/manual/asciidoc-text.conf    Sat Aug 09 19:42:30 2014 +0200
> @@ -0,0 +1,13 @@
> +# For hyperlinks, show 'link text [URL]' (if link text provided) or [URL]
> +[http-inlinemacro]
> +{0=} [{name}:{target}]
> +[https-inlinemacro]
> +{0=} [{name}:{target}]
> +[ftp-inlinemacro]
> +{0=} [{name}:{target}]
> +[file-inlinemacro]
> +{0=} [{name}:{target}]
> +[irc-inlinemacro]
> +{0=} [{name}:{target}]
> +[mailto-inlinemacro]
> +{0=} [{name}:{target}]

I'm going to send a refined version of this patch that removes the
brackets in case no link text was provided...


More information about the buildroot mailing list