aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Alexander Belykh <albel727@ngs.ru> 2015-04-02 00:25:16 +0600
committerAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2015-04-01 21:05:49 +0200
commited29ce98c915c1d60375ba8d2a9cf8617582f988 (patch)
treebd291135327ac0fc13b849869138c5efca1826bd
parent8e5f8453167bc4a188c943ffb21c1b082b331fcb (diff)
downloadpaludis-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.rb2
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 bb4507d..b396a7e 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|