Skip to content
Snippets Groups Projects
  • Kevin Harwell's avatar
    cab8a76a
    rest-api-templates/asterisk_processor - replace http line breaks with line feed · cab8a76a
    Kevin Harwell authored
    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
    cab8a76a
    History
    rest-api-templates/asterisk_processor - replace http line breaks with line feed
    Kevin Harwell authored
    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