Merge pull request #3865 from swagger-api/xml-2-spaces
Indent XML with 2 spaces
This commit is contained in:
@@ -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 } />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user