Mercurial Hosting > luan
diff src/luan/modules/HtmlLuan.java @ 1333:25746915a241
merge Luan and LuanState
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 12 Feb 2019 22:33:40 -0700 |
parents | 1a68fc55a80c |
children | a015a0b5c388 |
line wrap: on
line diff
--- a/src/luan/modules/HtmlLuan.java Tue Feb 12 21:50:26 2019 -0700 +++ b/src/luan/modules/HtmlLuan.java Tue Feb 12 22:33:40 2019 -0700 @@ -7,7 +7,6 @@ import java.util.HashSet; import java.util.Map; import luan.Luan; -import luan.LuanState; import luan.LuanTable; import luan.LuanException; @@ -48,7 +47,7 @@ public static Set<String> containerTags = new HashSet<String>(Arrays.asList(SCRIPT,STYLE)); */ /* - public static LuanTable parse(LuanState luan,String text,LuanTable containerTagsTbl) + public static LuanTable parse(Luan luan,String text,LuanTable containerTagsTbl) throws LuanException { Utils.checkNotNull(luan,text); @@ -275,7 +274,7 @@ /* - public static String to_string(LuanState luan,LuanTable tbl) throws LuanException { + public static String to_string(Luan luan,LuanTable tbl) throws LuanException { List<Object> html = tbl.asList(); StringBuilder buf = new StringBuilder(); for( Object o : html ) { @@ -306,7 +305,7 @@ return buf.toString(); } - private static String tagToString(LuanState luan,LuanTable tbl) throws LuanException { + private static String tagToString(Luan luan,LuanTable tbl) throws LuanException { StringBuilder buf = new StringBuilder(); buf.append('<'); buf.append(tbl.get(luan,"name"));