diff --git a/lib/refrepo/gen/wiki/wiki_generator.rb b/lib/refrepo/gen/wiki/wiki_generator.rb index 2a22a0399c2f2ba3721825564089207e50ed9b2f..54c51273d7738ebed6680f568e4e43c2d1cb34c0 100644 --- a/lib/refrepo/gen/wiki/wiki_generator.rb +++ b/lib/refrepo/gen/wiki/wiki_generator.rb @@ -56,7 +56,7 @@ class WikiGenerator #Get the given page content and print a diff if any #Return true if there are no differences, false otherwise - def diff_page() + def diff_page wiki_content = remove_page_creation_date(@mw_client.get_page_content(@page_name)).strip # .strip removes potential '\n' at end of file generated_content = remove_page_creation_date(@generated_content).strip diff = Diffy::Diff.new(wiki_content, generated_content, :context => 3)