Skip to content
This repository
Browse code

Merge pull request #54 from costa/master

fixed #53
  • Loading branch information...
commit 9a5ed70e79938dfa6f350149eae10b03d2b851ba 2 parents 41ca062 + 0735211
Aaron Blohowiak authored December 15, 2012
2  lib/haml.js
@@ -376,7 +376,7 @@ var Haml;
376 376
       process: function () {
377 377
         this.contents.unshift(this.matches[2]);
378 378
         
379  
-        return '"<!--'+this.contents.join('\\n')+'-->"';
  379
+        return '"<!--'+this.contents.join('\\n').replace(/\"/g, '\\"')+'-->"';
380 380
       }
381 381
     },
382 382
     
2  test/comments.haml
@@ -11,4 +11,4 @@
11 11
   but not in the final HTML
12 12
   */
13 13
 / This should be a Haml comment
14  
-  and it should be in the resulting html
  14
+  and it should be in the resulting html (even with "double quotes")
2  test/comments.html
... ...
@@ -1,2 +1,2 @@
1 1
 <div class="display-this"></div>2<!--This should be a Haml comment
2  
-and it should be in the resulting html-->
  2
+and it should be in the resulting html (even with "double quotes")-->

0 notes on commit 9a5ed70

Please sign in to comment.
Something went wrong with that request. Please try again.