Permalink
Browse files

Handle empty elements

  • Loading branch information...
1 parent d6ae4d1 commit 6846102c0f1b2c6966023220cbeea79fede867a4 @brandonbloom committed Nov 2, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/convert.coffee
View
@@ -67,6 +67,8 @@ exports.convert = (html, stream, options, callback) ->
else
endTag ' ->'
nest -> visit.array children
+ else if attribs.length == 0
+ endTag('()')
else
endTag()

0 comments on commit 6846102

Please sign in to comment.