From 84ae9050f740e1763091d5861647afec268c4056 Mon Sep 17 00:00:00 2001 From: stefanp Date: Tue, 24 Jun 2003 14:31:38 +0000 Subject: [PATCH] chopDelimiters() fixed to chop beginning as well as ending from the same line --- src/helma/doc/Util.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/helma/doc/Util.java b/src/helma/doc/Util.java index c00c0c5b..aa1f009c 100644 --- a/src/helma/doc/Util.java +++ b/src/helma/doc/Util.java @@ -36,18 +36,18 @@ public final class Util { if (line == null) { return null; } else if (line.startsWith("/**")) { - return line.substring(3).trim(); + line = line.substring(3).trim(); } else if (line.startsWith("/*")) { - return line.substring(2).trim(); - } else if (line.endsWith("*/")) { - return line.substring(0, line.length() - 2); + line = line.substring(2).trim(); } else if (line.startsWith("*")) { - return line.substring(1).trim(); + line = line.substring(1).trim(); } else if (line.startsWith("//")) { - return line.substring(2).trim(); - } else { - return line; + line = line.substring(2).trim(); } + if (line.endsWith("*/")) { + line = line.substring(0, line.length() - 2); + } + return line; } /**