On 01/25/2016 09:20 AM, Dan Smith wrote: > (I run into this problem quite a bit when debugging javac, because 'toString' on AST nodes often produces multi-line output.) tree.toString().replaceAll("\\s+", " ")