]> git.ipfire.org Git - thirdparty/asterisk.git/commit
rest-api-templates/asterisk_processor - replace http line breaks with line feed
authorKevin Harwell <kharwell@digium.com>
Mon, 25 Feb 2019 21:32:27 +0000 (15:32 -0600)
committerKevin Harwell <kharwell@digium.com>
Mon, 25 Feb 2019 23:31:51 +0000 (17:31 -0600)
commitcab8a76ae3726bf71ef657dc2e11c0ad41c9ed70
tree0a7f5be2cd1429de721b63775c8d33153d0981dc
parenta2254c58785b17e2fcbd2a6dca6cd2a8eda596a6
rest-api-templates/asterisk_processor - replace http line breaks with line feed

Including line breaks (<br>, <br/>, <br />) in certain parts of the rest-api
json definition (e.g. summary, notes) displays them correctly in swagger.
However, when the field gets converted to the wiki format those breaks get
escaped and show up in the text as the actual string literal "<br>" etc...

This patch makes it so when converting to the wiki format it replaces all line
break values (<br>, etc...) with line feeds ('\n').

Change-Id: Ie1c9faa0d1c5d622804cc0a21ce769095b08aa3d
rest-api-templates/asterisk_processor.py