Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Really fix the NaN issue.

  • Loading branch information...
commit d6fa280ca08ddc604762b9add54afd1b71a7713a 1 parent 0770f61
@creationix authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/haml.js
  2. +1 −1  test/nanline.html
View
2  lib/haml.js
@@ -425,7 +425,7 @@ var Haml;
if (block) {
output.push(block.process());
}
- return output.join(' + \n');
+ return output.filter(function (part) { return part && part.length > 0}).join(" +\n");
};
function optimize(js) {
View
2  test/nanline.html
@@ -1,2 +1,2 @@
<!DOCTYPE html>
-<html><head><title>atomix<script src="atomix_xlib.js"></script></head></html>
+<html><head><title>atomix</title><script src="atomix_xlib.js"></script></head></html>
Please sign in to comment.
Something went wrong with that request. Please try again.