]> git.wincent.com - wikitext.git/commit
Reuse link_target if link_text is Qnil in _Wikitext_append_hyperlink
authorWincent Colaiuta <win@wincent.com>
Fri, 8 May 2009 12:10:54 +0000 (14:10 +0200)
committerWincent Colaiuta <win@wincent.com>
Fri, 8 May 2009 12:10:54 +0000 (14:10 +0200)
commitefcb302501cfd3258474e25cd2f2e7b26360dc26
treeddbada4b6771f9e3ed4537767e96556f9587354e
parent1565585c169f764f6a113cd90e676b43f5048f06
Reuse link_target if link_text is Qnil in _Wikitext_append_hyperlink

This cleans up a few call sites of _Wikitext_append_hyperlink. The
majority of these sites pass in the same text for the link target
and link text parameters, so teach the function to automatically
reuse the link target as the link text if no link text is explicitly
provided.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
ext/parser.c