]> git.wincent.com - wikitext.git/commit
Teach wiki_append_sanitized_link_target to take a str_t
authorWincent Colaiuta <win@wincent.com>
Thu, 29 Nov 2012 07:46:30 +0000 (23:46 -0800)
committerWincent Colaiuta <win@wincent.com>
Thu, 29 Nov 2012 07:46:30 +0000 (23:46 -0800)
commit778839efae7d7dc84d7b898847986b0410855d06
tree69c26489a5557c1c0dba0230dc542484b9c3f77d
parentb54286c4aeebc898e76cc7d8b2d92700a8b0458a
Teach wiki_append_sanitized_link_target to take a str_t

Rather than passing in a parser_t and assuming the text we want to
operate on is the one in the struct, pass in the link target str_t
explicitly. This added flexibility will make the
wiki_append_sanitized_link_target function suitable for wider use, which
I am presently going to do in order to fix a bug.

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