Get Java to use tabs instead of spaces for indenting.
Posted
by tumba25
on Stack Overflow
See other posts from Stack Overflow
or by tumba25
Published on 2010-04-02T01:18:45Z
Indexed on
2010/04/02
1:23 UTC
Read the original article
Hit count: 286
I'm creating an XML document. I got it to indent using TransformerFactory.setAttribute("indent-number", new Integer(2)); Transformer.setOutputProperty(OutputKeys.INDENT, "yes");
Is it possible to get Java to use tabs instead of spaces for indenting? And how?
© Stack Overflow or respective owner