Skip to content
Commit 87db5de3 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

xml-indent: Optimize getCode

It calls code.trim() at the end which can be a massive slowdown if
the text has spaces at the end/beginning. We can avoid this by
starting at first non space column.

Note for future, perhaps this function can be factored out to a common
place as its being used by many indenters
parent fc3e61c3
Pipeline #361438 passed with stage
in 9 minutes and 42 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment