[PATCH] allow overriding indent string or TCPProxy generated scripts
Joan Picanyol i Puig <[email protected]>
| Newsgroups | gmane.comp.java.grinder.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, The trivial one-liner attached makes my life much more easier when editing TCPProxy generated scripts, since I can have them generated with 4 spaces indent like PEP-8 dictates. tks -- pica ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ grinder-use mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/grinder-use
allow_overriding_indent_string.patch
(text/plain, 701 B)
Index: grinder-http/src/main/java/net/grinder/plugin/http/tcpproxyfilter/XSLTHelper.java
===================================================================
--- grinder-http/src/main/java/net/grinder/plugin/http/tcpproxyfilter/XSLTHelper.java (revision bd88b9f188684667390d6f290cc0d1a6c49af20b)
+++ grinder-http/src/main/java/net/grinder/plugin/http/tcpproxyfilter/XSLTHelper.java (revision )
@@ -48,7 +48,8 @@
*/
public final class XSLTHelper {
private static int s_indentLevel;
- private static String s_indentString = " ";
+
+ private static String s_indentString = System.getProperty("grinder.xslthelper.indent", " ");
XSLTHelper() {
throw new UnsupportedOperationException();