Indent XML with 2 spaces

This commit is contained in:
Kyle Shockey
2017-11-03 18:13:17 -07:00
parent 261b73bd0f
commit d5d7e45d62

View File

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