From fb5ab2675fd4de99bec6b3f0594da041d58eb8bb Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Fri, 20 May 2011 12:54:52 -0700 Subject: [PATCH] Fix html2haml. --- doc-src/HAML_CHANGELOG.md | 2 ++ lib/haml/exec.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc-src/HAML_CHANGELOG.md b/doc-src/HAML_CHANGELOG.md index c309c903..612c9588 100644 --- a/doc-src/HAML_CHANGELOG.md +++ b/doc-src/HAML_CHANGELOG.md @@ -10,6 +10,8 @@ * Don't throw errors when text is nested within comments. +* Fix html2haml. + ## 3.1.1 * Update the vendored Sass to version 3.1.0. diff --git a/lib/haml/exec.rb b/lib/haml/exec.rb index 81eea019..fc8b6217 100644 --- a/lib/haml/exec.rb +++ b/lib/haml/exec.rb @@ -9,7 +9,7 @@ module Haml # @param args [Array] The command-line arguments def initialize(args) @args = args - @options = {} + @options = {:for_engine => {}} end # Parses the command-line arguments and runs the executable.