some tiny fixes

This commit is contained in:
stefanp 2002-11-21 18:32:47 +00:00
parent 4372b62ad2
commit 520a32fe80
3 changed files with 8 additions and 2 deletions

View file

@ -211,6 +211,7 @@ public abstract class DocElement implements IPathElement {
buf.append (line+"\n"); buf.append (line+"\n");
line = in.readLine (); line = in.readLine ();
} }
in.close ();
return buf.toString(); return buf.toString();
} catch (IOException e) { } catch (IOException e) {
return (""); return ("");

View file

@ -51,7 +51,10 @@ public class DocSkin extends DocFileElement {
} }
if (j > i+2) { if (j > i+2) {
String str = (new String (source, i+2, j-i)).trim (); String str = (new String (source, i+2, j-i)).trim ();
str = str.substring (0, str.indexOf(" ")); if (str.endsWith("%>"))
str = str.substring (0, str.length()-2);
if (str.indexOf (" ")>-1)
str = str.substring (0, str.indexOf(" "));
if (str.indexOf(".")>-1 && if (str.indexOf(".")>-1 &&
(str.startsWith ("param.") (str.startsWith ("param.")
|| str.startsWith ("response.") || str.startsWith ("response.")

View file

@ -12,8 +12,10 @@ public final class Util {
} }
public static boolean isExcluded (String str) { public static boolean isExcluded (String str) {
if (excluded.size ()==0) if (excluded.size ()==0) {
excluded.add ("cvs"); excluded.add ("cvs");
excluded.add (".docs");
}
return (excluded.contains (str.toLowerCase ())); return (excluded.contains (str.toLowerCase ()));
} }