projects
/
org.ibex.core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e28f418
)
2003/04/28 08:24:18
author
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 06:59:20 +0000
(06:59 +0000)
committer
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 06:59:20 +0000
(06:59 +0000)
darcs-hash:
20040130065920
-2ba56-
4ce42ee27568893c5b01e5283d98ee8af2447044
.gz
src/org/xwt/Template.java
patch
|
blob
|
history
diff --git
a/src/org/xwt/Template.java
b/src/org/xwt/Template.java
index
ba542fd
..
22c994c
100644
(file)
--- a/
src/org/xwt/Template.java
+++ b/
src/org/xwt/Template.java
@@
-95,9
+95,6
@@
public class Template {
// Static data/methods ///////////////////////////////////////////////////////////////////
// Static data/methods ///////////////////////////////////////////////////////////////////
- /** maximum length of a line */
- private static final int MAX_COLUMN = 150;
-
/** a template cache so that only one Template object is created for each xwt */
private static Hashtable cache = new Hashtable(1000);
/** a template cache so that only one Template object is created for each xwt */
private static Hashtable cache = new Hashtable(1000);
@@
-682,10
+679,7
@@
public class Template {
}
public void characters(char[] ch, int start, int length) throws XML.SchemaException {
}
public void characters(char[] ch, int start, int length) throws XML.SchemaException {
- // invoke the max-column-length and no-tab crusade
- if (getCol() + length > MAX_COLUMN) throw new XML.SchemaException(
- t.nodeName+ ":" + getLine() + ": lines longer than " + MAX_COLUMN + " characters not allowed");
-
+ // invoke the no-tab crusade
for (int i=0; length >i; i++) if (ch[start+i] == '\t') throw new XML.SchemaException(
t.nodeName+ ":" + getLine() + "," + getCol() + ": tabs are not allowed in XWT files");
for (int i=0; length >i; i++) if (ch[start+i] == '\t') throw new XML.SchemaException(
t.nodeName+ ":" + getLine() + "," + getCol() + ": tabs are not allowed in XWT files");