Merge pull request #3865 from swagger-api/xml-2-spaces

Indent XML with 2 spaces
This commit is contained in:
kyle
2017-11-03 18:19:26 -07:00
committed by GitHub

View File

@@ -32,7 +32,8 @@ export default class ResponseBody extends React.Component {
// XML
} else if (/xml/i.test(contentType)) {
body = formatXml(content, {
textNodesOnSameLine: true
textNodesOnSameLine: true,
indentor: " "
})
bodyEl = <HighlightCode value={ body } />