X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Forg%2Fxwt%2FTemplate.java;h=22c994c2f78586a6640dd2f515392ece4e8acb5c;hb=bc0d2f2d898adb7b0e207ac4d9ddfde1b408230a;hp=ba542fd5bee0905fbe31eac1c355c770f38f709a;hpb=e28f41809143f3aae98f581ed86b990b033a34d2;p=org.ibex.core.git diff --git a/src/org/xwt/Template.java b/src/org/xwt/Template.java index ba542fd..22c994c 100644 --- a/src/org/xwt/Template.java +++ b/src/org/xwt/Template.java @@ -95,9 +95,6 @@ public class Template { // 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); @@ -682,10 +679,7 @@ public class Template { } 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");