Skip to content

Commit

Permalink
Remove trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
robin850 committed May 24, 2014
1 parent 6b7d58c commit 799cbdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ext/redcarpet/html_smartypants.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <ctype.h>

#if defined(_WIN32)
#define snprintf _snprintf
#define snprintf _snprintf
#endif

struct smartypants_data {
Expand Down Expand Up @@ -144,7 +144,7 @@ smartypants_squote(struct buf *ob, struct smartypants_data *smrt, uint8_t previo
BUFPUTSL(ob, "&rsquo;");
return 0;
}

// Tom's, isn't, I'm, I'd
if ((t1 == 's' || t1 == 't' || t1 == 'm' || t1 == 'd') &&
(size == 3 || word_boundary(text[2]))) {
Expand Down
2 changes: 1 addition & 1 deletion test/smarty_pants_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_that_backticks_are_preserved
rd = @pants.render("<p>single `backticks` in HTML should be preserved</p>")
assert_equal "<p>single `backticks` in HTML should be preserved</p>", rd
end

def test_that_smart_converts_trailing_single_quotes_to_curly_quotes
rd = @pants.render("<p>Hopin' that this bug gets some fixin'.</p>")
assert_equal "<p>Hopin&rsquo; that this bug gets some fixin&rsquo;.</p>", rd
Expand Down

0 comments on commit 799cbdf

Please sign in to comment.