diff core/src/luan/modules/HtmlLuan.java @ 411:23b99a5039b5

remove Luan.newTable()
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 29 Apr 2015 16:05:02 -0600
parents 4fe6c9fed486
children 23a93c118042
line wrap: on
line diff
--- a/core/src/luan/modules/HtmlLuan.java	Wed Apr 29 15:38:15 2015 -0600
+++ b/core/src/luan/modules/HtmlLuan.java	Wed Apr 29 16:05:02 2015 -0600
@@ -136,25 +136,25 @@
 				}
 			}
 		}
-		return Luan.newTable(html);
+		return new LuanTable(html);
 	}
 
 	static LuanTable comment(String text) {
-		LuanTable tbl = Luan.newTable();
+		LuanTable tbl = new LuanTable();
 		tbl.put("type","comment");
 		tbl.put("text",text);
 		return tbl;
 	}
 
 	static LuanTable cdata(String text) {
-		LuanTable tbl = Luan.newTable();
+		LuanTable tbl = new LuanTable();
 		tbl.put("type","cdata");
 		tbl.put("text",text);
 		return tbl;
 	}
 
 	static LuanTable textContainer(LuanTable tag,String text) {
-		LuanTable tbl = Luan.newTable();
+		LuanTable tbl = new LuanTable();
 		tbl.put("type","container");
 		tbl.put("tag",tag);
 		tbl.put("text",text);
@@ -170,7 +170,7 @@
 	}
 
 	static LuanTable parseTag(String text) {
-		LuanTable tbl = Luan.newTable();
+		LuanTable tbl = new LuanTable();
 		tbl.put("type","tag");
 		if( text.endsWith("/") ) {
 			text = text.substring(0,text.length()-1);
@@ -193,7 +193,7 @@
 		}
 		String name = text.substring(i,i2).toLowerCase();
 		tbl.put("name",name);
-		LuanTable attributes = Luan.newTable();
+		LuanTable attributes = new LuanTable();
 		tbl.put("attributes",attributes);
 		i = i2;
 		while( i<len && Character.isWhitespace(text.charAt(i)) )  i++;