Permalink
Browse files

strip whitespace before #

  • Loading branch information...
1 parent f29ab75 commit 6a51108cb314e3904197a9b59fcc42bdbf5c290a @tj committed Nov 8, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/api.js
View
@@ -16,7 +16,11 @@ module.exports = function(comments){
buf.push('');
});
- return buf.join('\n');
+ buf = buf
+ .join('\n')
+ .replace(/^ *#/gm, '')
+
+ return buf;
};
function context(comment) {

0 comments on commit 6a51108

Please sign in to comment.