Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grid5000
reference-repository
Commits
4ee4889e
Commit
4ee4889e
authored
Nov 17, 2018
by
Lucas Nussbaum
Browse files
[dev] style
parent
a0317aec
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/refrepo/gen/wiki/wiki_generator.rb
View file @
4ee4889e
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment