Skip to content

Commit

Permalink
Fix options.prefix for outside of normal tags
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonbloom committed Nov 2, 2011
1 parent 80e45e4 commit 71d5ada
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/convert.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,16 @@ exports.convert = (html, stream, options, callback) ->

text: (text) ->
return if text.data.match /^\s*$/
emit "text #{stringLiteral text.data}"
emit "#{prefix}text #{stringLiteral text.data}"

directive: (directive) ->
if directive.name.toLowerCase() == '!doctype'
emit "doctype TODO" #TODO: Extract doctype
emit "#{prefix}doctype TODO" #TODO: Extract doctype
else
console.error "Unknown directive: #{inspect directive.name}"

comment: (comment) ->
emit "comment #{stringLiteral comment.data}"
emit "#{prefix}comment #{stringLiteral comment.data}"

script: (script) ->
visit.tag script #TODO: Something better
Expand Down

0 comments on commit 71d5ada

Please sign in to comment.