]> git.wincent.com - wikitext.git/commit
Tighten up indent function
authorWincent Colaiuta <win@wincent.com>
Mon, 18 Feb 2008 23:28:08 +0000 (00:28 +0100)
committerWincent Colaiuta <win@wincent.com>
Mon, 18 Feb 2008 23:28:08 +0000 (00:28 +0100)
commit2df3c1183706bea9e02d68aeca9d97f92a3d449e
tree3aa6250ce0ac101be4d752c840f9303cf59fb9b0
parent3870f90b262cf825e6dfdd83090626cf1e5826d5
Tighten up indent function

This wasn't calculating the string end point correctly nor updating the
stored length which meant that it was unnecessarily refilling the buffer
every time; this is quite counterproductive seeing as the whole point
of the reusable buffer was to avoid re-generating the same indentation
string over and over.

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