Mercurial > dive4elements > river
changeset 7346:42acdab9803a
Break sometimes when dumping variables. Still ugly but a bit nicer.
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Tue, 15 Oct 2013 17:01:20 +0200 |
parents | 40e5ad76103c |
children | 93a1e63f5644 |
files | artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/StackFrames.java |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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('\''); }