Mercurial Hosting > luan
comparison src/luan/modules/HtmlLuan.java @ 1714:31a82b0d0a87
bbcode and html work
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 18 Jul 2022 23:49:47 -0600 |
parents | 36c28be6d432 |
children |
comparison
equal
deleted
inserted
replaced
1713:4d70e9543ef2 | 1714:31a82b0d0a87 |
---|---|
25 tbl.rawPut("type","tag"); | 25 tbl.rawPut("type","tag"); |
26 tbl.rawPut("name",tag.name); | 26 tbl.rawPut("name",tag.name); |
27 tbl.rawPut("attributes",new LuanTable(tag.attributes)); | 27 tbl.rawPut("attributes",new LuanTable(tag.attributes)); |
28 tbl.rawPut("is_empty",tag.isEmpty); | 28 tbl.rawPut("is_empty",tag.isEmpty); |
29 tbl.rawPut("raw",tag.raw); | 29 tbl.rawPut("raw",tag.raw); |
30 if( tag.style != null ) | |
31 tbl.rawPut("style",new LuanTable(tag.style)); | |
30 return tbl; | 32 return tbl; |
31 } | 33 } |
32 public static LuanTable parse(String text,LuanTable containerTagsTbl) { | 34 public static LuanTable parse(String text,LuanTable containerTagsTbl) { |
33 try { | 35 try { |
34 Set<String> containerTags = new HashSet(); | 36 Set<String> containerTags = new HashSet(); |