|
@@ -12,6 +12,8 @@
|
|
|
|
|
|
emit_tag(TagName, Props) -> [<<"<">>,TagName] ++ write_props(Props) ++ [<<"/>">>].
|
|
|
emit_tag(TagName, undefined, Props) -> emit_tag(TagName, [], Props);
|
|
|
+emit_tag(TagName, [], Props) -> emit_tag(TagName, [], Props);
|
|
|
+emit_tag(TagName, [[]], Props) -> emit_tag(TagName, [], Props);
|
|
|
emit_tag(TagName, [undefined], Props) -> emit_tag(TagName, [], Props);
|
|
|
emit_tag(TagName, <<>>, Props) when ?VOID(TagName) -> emit_tag(TagName, Props);
|
|
|
emit_tag(TagName, [], Props) -> [<<"<">>,TagName,write_props(Props),<<">">>,<<"</">>,TagName,<<">">>];
|