some tiny fixes
This commit is contained in:
parent
4372b62ad2
commit
520a32fe80
3 changed files with 8 additions and 2 deletions
|
@ -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 ("");
|
||||
|
|
|
@ -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.")
|
||||
|
|
|
@ -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 ()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue