Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: creationix/haml-js
base: 41ca0629a6
...
head fork: creationix/haml-js
compare: 9a5ed70e79
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 2 contributors
Commits on Dec 08, 2011
@costa costa Fixes #53 0735211
Commits on Dec 15, 2012
@aaronblohowiak aaronblohowiak Merge pull request #54 from costa/master
fixed #53
9a5ed70
Showing with 3 additions and 3 deletions.
  1. +1 −1  lib/haml.js
  2. +1 −1  test/comments.haml
  3. +1 −1  test/comments.html
View
2  lib/haml.js
@@ -376,7 +376,7 @@ var Haml;
process: function () {
this.contents.unshift(this.matches[2]);
- return '"<!--'+this.contents.join('\\n')+'-->"';
+ return '"<!--'+this.contents.join('\\n').replace(/\"/g, '\\"')+'-->"';
}
},
View
2  test/comments.haml
@@ -11,4 +11,4 @@
but not in the final HTML
*/
/ This should be a Haml comment
- and it should be in the resulting html
+ and it should be in the resulting html (even with "double quotes")
View
2  test/comments.html
@@ -1,2 +1,2 @@
<div class="display-this"></div>2<!--This should be a Haml comment
-and it should be in the resulting html-->
+and it should be in the resulting html (even with "double quotes")-->

No commit comments for this range

Something went wrong with that request. Please try again.