[DRE-commits] [ruby-org] 133/303: add support for "-----" to "<hr>"

Jérémy Bobbio lunar at alioth.debian.org
Fri Aug 9 17:33:43 UTC 2013


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository ruby-org.

commit c9938cbc51c0eb08299c30c7b9403798ae6acea0
Author: Neil Smithline <github.com at neilsmithline.com>
Date:   Sat Feb 25 22:30:07 2012 -0500

    add support for "-----" to "<hr>"
---
 lib/org-ruby/html_output_buffer.rb |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/org-ruby/html_output_buffer.rb b/lib/org-ruby/html_output_buffer.rb
index 14448d1..2d5a3bb 100644
--- a/lib/org-ruby/html_output_buffer.rb
+++ b/lib/org-ruby/html_output_buffer.rb
@@ -169,6 +169,7 @@ module Orgmode
       @buffer.gsub!(/&/, "&")
       @buffer.gsub!(/</, "<")
       @buffer.gsub!(/>/, ">")
+      @buffer.gsub!(/^ *-{5,} *$/, "<hr/>")
     end
 
     def output_indentation

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-org.git



More information about the Pkg-ruby-extras-commits mailing list