From 09f035de3050706dfd95084f7d529515a57f3f63 Mon Sep 17 00:00:00 2001 From: mdb Date: Mon, 23 Sep 2002 20:33:04 +0000 Subject: [PATCH] Whoops, wrap avoidance code was booched. Normal log lines have no newlines anywhere until we add one when logging it. git-svn-id: https://samskivert.googlecode.com/svn/trunk@841 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../src/java/com/samskivert/util/DefaultLogProvider.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/projects/samskivert/src/java/com/samskivert/util/DefaultLogProvider.java b/projects/samskivert/src/java/com/samskivert/util/DefaultLogProvider.java index bfc536e9..0ba7be49 100644 --- a/projects/samskivert/src/java/com/samskivert/util/DefaultLogProvider.java +++ b/projects/samskivert/src/java/com/samskivert/util/DefaultLogProvider.java @@ -1,5 +1,5 @@ // -// $Id: DefaultLogProvider.java,v 1.12 2002/09/23 18:00:59 mdb Exp $ +// $Id: DefaultLogProvider.java,v 1.13 2002/09/23 20:33:04 mdb Exp $ // // samskivert library - useful routines for java programs // Copyright (C) 2001 Michael Bayne @@ -117,9 +117,8 @@ public class DefaultLogProvider implements LogProvider int wrapwid = _tdimens.width - GAP.length(); int remain = message.length(), offset = 0; - // if the text contains newlines anywhere except at the end, don't - // wrap it - if (message.indexOf("\n") != message.length()-1) { + // if the text contains newlines, don't wrap it + if (message.indexOf("\n") != -1) { wrapwid = Integer.MAX_VALUE; }