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");
|
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 ("");
|
||||||
|
|
|
@ -51,6 +51,9 @@ 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 ();
|
||||||
|
if (str.endsWith("%>"))
|
||||||
|
str = str.substring (0, str.length()-2);
|
||||||
|
if (str.indexOf (" ")>-1)
|
||||||
str = str.substring (0, str.indexOf(" "));
|
str = str.substring (0, str.indexOf(" "));
|
||||||
if (str.indexOf(".")>-1 &&
|
if (str.indexOf(".")>-1 &&
|
||||||
(str.startsWith ("param.")
|
(str.startsWith ("param.")
|
||||||
|
|
|
@ -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 ()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue