[DRE-commits] [ruby-org] 261/303: Slight change for accumulating raw HTML.

Jérémy Bobbio lunar at alioth.debian.org
Fri Aug 9 17:34:09 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 f4abf72321d6068d59c756fe540aedb2890b2a62
Author: vonavi <ivvl82 at gmail.com>
Date:   Sat Feb 2 20:20:28 2013 +0200

    Slight change for accumulating raw HTML.
---
 lib/org-ruby/html_output_buffer.rb |    2 +-
 lib/org-ruby/output_buffer.rb      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/org-ruby/html_output_buffer.rb b/lib/org-ruby/html_output_buffer.rb
index da3892e..568cc90 100644
--- a/lib/org-ruby/html_output_buffer.rb
+++ b/lib/org-ruby/html_output_buffer.rb
@@ -146,8 +146,8 @@ module Orgmode
         @logger.debug "SKIP       ==========> #{current_mode}"
 
       when (current_mode == :raw_text and @buffer.length > 0)
+        @buffer.gsub!(/\A\n/, "") if @new_paragraph == :start
         @new_paragraph = true
-        @output << "\n" unless @new_paragraph == :start
         @output << @buffer
 
       when @buffer.length > 0
diff --git a/lib/org-ruby/output_buffer.rb b/lib/org-ruby/output_buffer.rb
index 1b5c066..f6afa1b 100644
--- a/lib/org-ruby/output_buffer.rb
+++ b/lib/org-ruby/output_buffer.rb
@@ -86,7 +86,7 @@ module Orgmode
         when :metadata, :table_separator, :blank, :comment, :property_drawer_item, :property_drawer_begin_block, :property_drawer_end_block, :quote, :center, :example, :src
           # Nothing
         when :raw_text
-          @buffer << line.output_text if line.raw_text_tag == @buffer_tag
+          @buffer << "\n" << line.output_text if line.raw_text_tag == @buffer_tag
         else
           @buffer << "\n"
           buffer_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