Browse files

Really fix the NaN issue.

  • Loading branch information...
1 parent 0770f61 commit d6fa280ca08ddc604762b9add54afd1b71a7713a @creationix committed Apr 5, 2010
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>

0 comments on commit d6fa280

Please sign in to comment.