diff options
author | 2015-04-02 00:25:16 +0600 | |
---|---|---|
committer | 2015-04-01 21:05:49 +0200 | |
commit | ed29ce98c915c1d60375ba8d2a9cf8617582f988 (patch) | |
tree | bd291135327ac0fc13b849869138c5efca1826bd | |
parent | 8e5f8453167bc4a188c943ffb21c1b082b331fcb (diff) | |
download | paludis-ed29ce98c915c1d60375ba8d2a9cf8617582f988.tar.gz paludis-ed29ce98c915c1d60375ba8d2a9cf8617582f988.tar.xz |
Fix description formatting in generated html for ruby examples
-rw-r--r-- | doc/api/ruby/create_ruby_examples.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/ruby/create_ruby_examples.rb b/doc/api/ruby/create_ruby_examples.rb index bb4507d84..b396a7e12 100644 --- a/doc/api/ruby/create_ruby_examples.rb +++ b/doc/api/ruby/create_ruby_examples.rb @@ -24,7 +24,7 @@ ARGV.each do |example_file| output.write "<h1>#{example_file}</h1>" #Grab examples description - html.scan(/=begin description(.*?)=end/m) {|desc| output.puts "<p>#{desc}</p>"} + html.scan(/=begin description(.*?)=end/m) {|desc| output.puts "<p>#{desc[0]}</p>"} #enclose each line of an =begin block in a comment span html.gsub!(/=begin description.*?=end/m) do |match| |