[ https://issues.apache.org/jira/browse/GROOVY-7889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15388668#comment-15388668 ]
Paul King edited comment on GROOVY-7889 at 7/22/16 12:20 AM: ------------------------------------------------------------- There are numerous constructors that take a {{PrintWriter}}. Is one of those not sufficient? E.g. {code} def autoFlush = true def ip = new IndentPrinter(new PrintWriter(System.out, autoFlush)) // use ip {code} was (Author: paulk): There are numerous constructors that take a {{PrintWriter}}. Is one of those not sufficient? E.g. {code} def ip = new IndentPrinter(new PrintWriter(System.out, true)) // use ip {code} > Add autoFlush option to IndentPrinter > ------------------------------------- > > Key: GROOVY-7889 > URL: https://issues.apache.org/jira/browse/GROOVY-7889 > Project: Groovy > Issue Type: Improvement > Reporter: M. Justin > Priority: Minor > > It would be convenient for some usage patterns if IndentPrinter had an > autoFlush option in the same manner as PrintWriter. Specifically, if > autoFlush were on, any call to either of the println methods would call > flush() on the writer. -- This message was sent by Atlassian JIRA (v6.3.4#6332)