Browse files

Fix options.prefix for outside of normal tags

  • Loading branch information...
1 parent 80e45e4 commit 71d5adaeecc86fc31575ba9530266b45eb40dde1 @brandonbloom committed Nov 2, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/convert.coffee
View
6 lib/convert.coffee
@@ -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

0 comments on commit 71d5ada

Please sign in to comment.