# HG changeset patch # User Andre Heinecke # Date 1381849280 -7200 # Node ID 42acdab9803a26513c1359ca7f0c4dd5fda325d4 # Parent 40e5ad76103c09ad7e801b6711f5601a111428ad Break sometimes when dumping variables. Still ugly but a bit nicer. diff -r 40e5ad76103c -r 42acdab9803a artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/StackFrames.java --- a/artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/StackFrames.java Tue Oct 15 18:31:59 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/StackFrames.java Tue Oct 15 17:01:20 2013 +0200 @@ -172,6 +172,9 @@ if (already.add(entry.getKey())) { if (first) { first = false; } else { sb.append(", "); } + if (sb.length() - sb.lastIndexOf("\n") > 80) { + sb.append("\n"); + } sb.append('\'').append(entry.getKey()) .append("'='").append(entry.getValue()).append('\''); }