]> git.ipfire.org Git - thirdparty/asterisk.git/commit
xmldoc: Improve xmldoc wrapping of 'core show ...' output. 76/1576/1
authorWalter Doekes <walter+asterisk@wjd.nu>
Fri, 6 Nov 2015 13:36:40 +0000 (14:36 +0100)
committerWalter Doekes <walter+asterisk@wjd.nu>
Fri, 6 Nov 2015 13:36:40 +0000 (14:36 +0100)
commitebed86fb4a0e09fcd7473e2e0d13a931adbfcd3e
tree83b1900257e70c22aabca471f33b1af484a574c5
parent77936f612d7418e7c8e9bd806633517a56b9cd38
xmldoc: Improve xmldoc wrapping of 'core show ...' output.

Previously, the wrapping did both lookahead and lookback, which,
together with color escape sequences, caused some lines to be wrapped
way earlier than other lines.  This led to inconsistent output.

This simplifies the wrapping code and makes it more sane: if maxcolumns
is hit, we simply jump back to the last space and wrap there.

ASTERISK-25527 #close

Change-Id: I56d01c6f9a812642b1b05535c98d4db48d17c957
main/xmldoc.c