Skip to content

Commit 500c10b

Browse files
authored
Merge pull request #3865 from swagger-api/xml-2-spaces
Indent XML with 2 spaces
2 parents 261b73b + d5d7e45 commit 500c10b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/components/response-body.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export default class ResponseBody extends React.Component {
3232
// XML
3333
} else if (/xml/i.test(contentType)) {
3434
body = formatXml(content, {
35-
textNodesOnSameLine: true
35+
textNodesOnSameLine: true,
36+
indentor: " "
3637
})
3738
bodyEl = <HighlightCode value={ body } />
3839

0 commit comments

Comments
 (0)