-
-
Notifications
You must be signed in to change notification settings - Fork 41
Remove empty lines from html #139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Is this only needed for 2.14 and 2.99? |
So this is mostly new line removals (I had to diff manually and grep) but also adds some div closing tags and I'm not sure why. |
Sorry for the big commit. Feel free to make any remarks of my work. I am also here to constantly improve myself. Advices and suggestions are always welcome. 😊 It should have added commands to show additions and deletions in PR body. Here is the diff without empty lines and "Generated on..." timestamp $ git diff -U0 HEAD\~1..HEAD | \
grep -v '^@@ ' | \
grep -v '^-[[:blank:]]*$' | \
grep -B1 -E '^(-[^-]|\+[^+])[^ Generated on]' +++ b/source/documentation/3.0/rspec-core/RSpec/Core/Runner.html
-</div>
+</div>
--
+++ b/source/documentation/3.1/rspec-core/RSpec/Core/Runner.html
-</div>
+</div>
--
+++ b/source/documentation/3.2/rspec-core/RSpec/Core/Notifications/ExamplesNotification.html
-</div>
+</div>
--
+++ b/source/documentation/3.2/rspec-core/RSpec/Core/Runner.html
-</div>
+</div>
--
+++ b/source/documentation/3.3/rspec-core/RSpec/Core/Notifications/ExamplesNotification.html
-</div>
+</div>
--
+++ b/source/documentation/3.3/rspec-core/RSpec/Core/Runner.html
-</div>
+</div>
--
+++ b/source/documentation/3.4/rspec-core/RSpec/Core/Notifications/ExamplesNotification.html
-</div>
+</div>
--
+++ b/source/documentation/3.4/rspec-core/RSpec/Core/Runner.html
-</div>
+</div>
--
+++ b/source/documentation/3.5/rspec-core/RSpec/Core/Notifications/ExamplesNotification.html
-</div>
+</div>
--
+++ b/source/documentation/3.5/rspec-core/RSpec/Core/Runner.html
-</div>
+</div>
--
+++ b/source/documentation/3.6/rspec-core/RSpec/Core/Notifications/ExamplesNotification.html
-</div>
+</div>
--
+++ b/source/documentation/3.6/rspec-core/RSpec/Core/Runner.html
-</div>
+</div>
--
+++ b/source/documentation/3.7/rspec-core/RSpec/Core/Notifications/ExamplesNotification.html
-</div>
+</div>
--
+++ b/source/documentation/3.7/rspec-core/RSpec/Core/Runner.html
-</div>
+</div>
--
+++ b/source/documentation/3.8/rspec-core/RSpec/Core/Notifications/ExamplesNotification.html
-</div>
+</div>
--
+++ b/source/documentation/3.8/rspec-core/RSpec/Core/Runner.html
-</div>
+</div>
--
+++ b/source/documentation/3.9/rspec-core/RSpec/Core/Notifications/ExamplesNotification.html
-</div>
+</div>
--
+++ b/source/documentation/3.9/rspec-core/RSpec/Core/Runner.html
-</div>
+</div> So div are only moved. |
It is needed for every version. |
Oh its removing some spacing after the tags? Thats ok then. |
Yep @JonRowe :) |
I'd suggest not merging until #138 is merged, then merge this into source, because it makes diffing 138 way more difficult. |
No problem Jon |
cd21fc5
to
201731d
Compare
The last change remove only blank lines: $ git diff -U0 HEAD\~1..HEAD | \
grep -v '^@@ ' | \
grep -v '^-[[:blank:]]*$' | \
grep -B1 -E '^(-[^-]|\+[^+])[^ Generated on]' +++ b/source/documentation/3.0/rspec-core/RSpec/Core/Runner.html
-</div>
+</div>
--
+++ b/source/documentation/3.1/rspec-core/RSpec/Core/Runner.html
-</div>
+</div>
--
+++ b/source/documentation/3.2/rspec-core/RSpec/Core/Notifications/ExamplesNotification.html
-</div>
+</div>
--
+++ b/source/documentation/3.2/rspec-core/RSpec/Core/Runner.html
-</div>
+</div>
--
+++ b/source/documentation/3.3/rspec-core/RSpec/Core/Notifications/ExamplesNotification.html
-</div>
+</div>
--
+++ b/source/documentation/3.3/rspec-core/RSpec/Core/Runner.html
-</div>
+</div>
--
+++ b/source/documentation/3.4/rspec-core/RSpec/Core/Notifications/ExamplesNotification.html
-</div>
+</div>
--
+++ b/source/documentation/3.4/rspec-core/RSpec/Core/Runner.html
-</div>
+</div>
--
+++ b/source/documentation/3.5/rspec-core/RSpec/Core/Notifications/ExamplesNotification.html
-</div>
+</div>
--
+++ b/source/documentation/3.5/rspec-core/RSpec/Core/Runner.html
-</div>
+</div>
--
+++ b/source/documentation/3.6/rspec-core/RSpec/Core/Notifications/ExamplesNotification.html
-</div>
+</div>
--
+++ b/source/documentation/3.6/rspec-core/RSpec/Core/Runner.html
-</div>
+</div>
--
+++ b/source/documentation/3.7/rspec-core/RSpec/Core/Notifications/ExamplesNotification.html
-</div>
+</div>
--
+++ b/source/documentation/3.7/rspec-core/RSpec/Core/Runner.html
-</div>
+</div>
--
+++ b/source/documentation/3.8/rspec-core/RSpec/Core/Notifications/ExamplesNotification.html
-</div>
+</div>
--
+++ b/source/documentation/3.8/rspec-core/RSpec/Core/Runner.html
-</div>
+</div>
--
+++ b/source/documentation/3.9/rspec-core/RSpec/Core/Notifications/ExamplesNotification.html
-</div>
+</div>
--
+++ b/source/documentation/3.9/rspec-core/RSpec/Core/Runner.html
-</div>
+</div> |
Rdoc/Erb generate a lot of extra empty lines. After a discussion #136 (review) and few try in RDoc and Erb the easiest solution at the moment is to remove line by ourself.
Dependent of #138