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");
line = in.readLine ();
}
in.close ();
return buf.toString();
} catch (IOException e) {
return ("");

View file

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

View file

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