Skip to content

Commit

Permalink
Make the code insertion a little more robust with whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
creationix committed Apr 14, 2010
1 parent 6f21e61 commit 8d070cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wheat.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ var Data;
markdown = markdown.replace(toPlaceholder(match.path),
'\n\n<a class="code-link" href="' + match.url + '">' +
match.name +
'</a>' +
"<pre><code>" + match.code + "</code></pre>\n"
'</a>\n' +
"<pre><code>" + match.code.trim() + "</code></pre>\n"
);
});
props.markdown = markdown;
Expand Down

0 comments on commit 8d070cc

Please sign in to comment.