all repos — markup @ 6c3ce3beef951796fe906541f99359f7d73363c5

The code we use to render README.your_favorite_markup

rstrip results to avoid errors dealing with newlines at the end of a file
Garen Torikian gjtorikian@gmail.com
Tue, 10 Sep 2013 22:26:56 -0700
commit

6c3ce3beef951796fe906541f99359f7d73363c5

parent

8154dca5f42425fe389ed7027c5569ae91e377ba

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M test/markup_test.rbtest/markup_test.rb

@@ -12,8 +12,8 @@ define_method "test_#{markup}" do

source = File.read(readme) expected_file = "#{readme}.html" - expected = File.read(expected_file) - actual = GitHub::Markup.render(readme, File.read(readme)) + expected = File.read(expected_file).rstrip + actual = GitHub::Markup.render(readme, File.read(readme)).rstrip if source != expected assert(source != actual, "#{markup} did not render anything")