History

Strip heredoc whitespace of attribution text in one place

Thibaut committed 12 years ago

Commit f4f6b671 parent 588589212 files · +12 −12Browse files

Unified · Split

12 files
  1. lib/docs/filters/core/attribution.rb +1 −1
  2. lib/docs/scrapers/backbone.rb +1 −1
  3. lib/docs/scrapers/coffeescript.rb +1 −1
  4. lib/docs/scrapers/ember.rb +1 −1
  5. lib/docs/scrapers/jquery/jquery.rb +1 −1
  6. lib/docs/scrapers/less.rb +1 −1
  7. lib/docs/scrapers/lodash.rb +1 −1
  8. lib/docs/scrapers/mdn/mdn.rb +1 −1
  9. lib/docs/scrapers/node.rb +1 −1
  10. lib/docs/scrapers/php.rb +1 −1
  11. lib/docs/scrapers/sass.rb +1 −1
  12. lib/docs/scrapers/underscore.rb +1 −1
lib/docs/filters/core/attribution.rb+1−1
@@ -13,7 +13,7 @@ module Docs · 12 unmodified lines
1313 <<-HTML.strip_heredoc
1414 <div class="_attribution">
1515 <p class="_attribution-p">
16− #{attribution.delete "\n"}<br>
16+ #{attribution.strip_heredoc.delete "\n"}<br>
1717 #{attribution_link}
1818 </p>
1919 </div>
lib/docs/scrapers/backbone.rb+1−1
@@ -12,7 +12,7 @@ module Docs · 11 unmodified lines
1212 options[:container] = '.container'
1313 options[:skip_links] = -> (_) { true }
1414
15− options[:attribution] = <<-HTML.strip_heredoc
15+ options[:attribution] = <<-HTML
1616 &copy; 2010&ndash;2013 Jeremy Ashkenas, DocumentCloud<br>
1717 Licensed under the MIT License.
1818 HTML
lib/docs/scrapers/coffeescript.rb+1−1
@@ -11,7 +11,7 @@ module Docs · 10 unmodified lines
1111 options[:container] = '.container'
1212 options[:skip_links] = -> (_) { true }
1313
14− options[:attribution] = <<-HTML.strip_heredoc
14+ options[:attribution] = <<-HTML
1515 &copy; 2009&ndash;2013 Jeremy Ashkenas<br>
1616 Licensed under the MIT License.
1717 HTML
lib/docs/scrapers/ember.rb+1−1
@@ -48,7 +48,7 @@ module Docs · 47 unmodified lines
4848
4949 options[:skip_patterns] = [/\._/]
5050
51− options[:attribution] = <<-HTML.strip_heredoc
51+ options[:attribution] = <<-HTML
5252 &copy; 2013 Yehuda Katz, Tom Dale and Ember.js contributors<br>
5353 Licensed under the MIT License.
5454 HTML
lib/docs/scrapers/jquery/jquery.rb+1−1
@@ -11,7 +11,7 @@ module Docs · 10 unmodified lines
1111 options[:trailing_slash] = false
1212 options[:skip_patterns] = [/category/]
1313
14− options[:attribution] = <<-HTML.strip_heredoc
14+ options[:attribution] = <<-HTML
1515 &copy; 2013 The jQuery Foundation<br>
1616 Licensed under the MIT License.
1717 HTML
lib/docs/scrapers/less.rb+1−1
@@ -10,7 +10,7 @@ module Docs · 9 unmodified lines
1010 options[:container] = 'section'
1111 options[:skip_links] = -> (_) { true }
1212
13− options[:attribution] = <<-HTML.strip_heredoc
13+ options[:attribution] = <<-HTML
1414 &copy; 2009&ndash;2013 Alexis Sellier &amp; The Core Less Team<br>
1515 Licensed under the Apache License v2.0.
1616 HTML
lib/docs/scrapers/lodash.rb+1−1
@@ -12,7 +12,7 @@ module Docs · 11 unmodified lines
1212 options[:container] = 'h1+div+div'
1313 options[:skip_links] = -> (_) { true }
1414
15− options[:attribution] = <<-HTML.strip_heredoc
15+ options[:attribution] = <<-HTML
1616 &copy; 2012&ndash;2013 The Dojo Foundation<br>
1717 Licensed under the MIT License.
1818 HTML
lib/docs/scrapers/mdn/mdn.rb+1−1
@@ -10,7 +10,7 @@ module Docs · 9 unmodified lines
1010 text_filters.insert_before 'attribution', 'mdn/contribute_link'
1111
1212 options[:trailing_slash] = false
13− options[:attribution] = <<-HTML.strip_heredoc
13+ options[:attribution] = <<-HTML
1414 &copy; 2013 Mozilla Contributors<br>
1515 Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
1616 HTML
lib/docs/scrapers/node.rb+1−1
@@ -13,7 +13,7 @@ module Docs · 12 unmodified lines
1313 options[:container] = '#apicontent'
1414 options[:skip] = %w(index.html all.html documentation.html synopsis.html)
1515
16− options[:attribution] = <<-HTML.strip_heredoc
16+ options[:attribution] = <<-HTML
1717 &copy; Joyent, Inc. and other Node contributors<br>
1818 Licensed under the MIT License.
1919 HTML
lib/docs/scrapers/php.rb+1−1
@@ -107,7 +107,7 @@ module Docs · 106 unmodified lines
107107 spl.datastructures.html spl.iterators.html spl.interfaces.html
108108 spl.exceptions.html spl.files.html spl.misc.html)
109109
110− options[:attribution] = <<-HTML.strip_heredoc
110+ options[:attribution] = <<-HTML
111111 &copy; 1997&ndash;2013 The PHP Documentation Group<br>
112112 Licensed under the Creative Commons Attribution License v3.0 or later.
113113 HTML
lib/docs/scrapers/sass.rb+1−1
@@ -17,7 +17,7 @@ module Docs · 16 unmodified lines
1717 'Sass Functions' if filter.slug == 'Sass/Script/Functions'
1818 end
1919
20− options[:attribution] = <<-HTML.strip_heredoc
20+ options[:attribution] = <<-HTML
2121 &copy; 2006&ndash;2013 Hampton Catlin, Nathan Weizenbaum, and Chris Eppstein<br>
2222 Licensed under the MIT License.
2323 HTML
lib/docs/scrapers/underscore.rb+1−1
@@ -12,7 +12,7 @@ module Docs · 11 unmodified lines
1212 options[:container] = '#documentation'
1313 options[:skip_links] = -> (_) { true }
1414
15− options[:attribution] = <<-HTML.strip_heredoc
15+ options[:attribution] = <<-HTML
1616 &copy; 2009&ndash;2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters &amp; Editors<br>
1717 Licensed under the MIT License.
1818 HTML