]> git.ipfire.org Git - thirdparty/asterisk.git/commit
xmldoc: Improve xmldoc wrapping of 'core show ...' output. 77/1577/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:45:19 +0000 (14:45 +0100)
commit0d425f2eb439161065b43d1178bfdac632d8bf56
treeb64a5066eb5d120e40b1a707fde340ce9104e618
parent506aea26e6c67cd53874aa3ffef278524dfd7878
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