diff options
author | Xavier Noria <fxn@hashref.com> | 2010-08-27 23:07:13 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-08-27 23:27:29 +0200 |
commit | 3b62667e7750a156332a32262f8fa4609ad2222a (patch) | |
tree | 2258041e61cc0eecaa0070433a214ee754e91f9b /railties/guides/rails_guides | |
parent | df367adba121739c0b4a47dda6ac02e348746c65 (diff) | |
download | rails-3b62667e7750a156332a32262f8fa4609ad2222a.tar.gz rails-3b62667e7750a156332a32262f8fa4609ad2222a.tar.bz2 rails-3b62667e7750a156332a32262f8fa4609ad2222a.zip |
solves everything in guides raised by WARNINGS=1 (except for one which is abandoned atm)
Diffstat (limited to 'railties/guides/rails_guides')
-rw-r--r-- | railties/guides/rails_guides/generator.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/guides/rails_guides/generator.rb b/railties/guides/rails_guides/generator.rb index 5a5ce54503..eaa9d79ce8 100644 --- a/railties/guides/rails_guides/generator.rb +++ b/railties/guides/rails_guides/generator.rb @@ -237,8 +237,9 @@ module RailsGuides end end - # Also, footnotes are rendered as paragraphs this way. + # Footnotes. anchors += Set.new(html.scan(/<p\s+class="footnote"\s+id="([^"]+)/).flatten) + anchors += Set.new(html.scan(/<sup\s+class="footnote"\s+id="([^"]+)/).flatten) return anchors end |