[DRE-commits] [ruby-org] 226/303: Indentation of ordinary lines was done.
Jérémy Bobbio
lunar at alioth.debian.org
Fri Aug 9 17:34:02 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 c0f99084e1d783c1702d4dabbe51ddf8832f9656
Author: vonavi <ivvl82 at gmail.com>
Date: Sat Jan 12 03:13:22 2013 +0300
Indentation of ordinary lines was done.
---
lib/org-ruby/html_output_buffer.rb | 5 +++++
lib/org-ruby/output_buffer.rb | 8 +++++++-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/lib/org-ruby/html_output_buffer.rb b/lib/org-ruby/html_output_buffer.rb
index ce180b3..4c58ed2 100644
--- a/lib/org-ruby/html_output_buffer.rb
+++ b/lib/org-ruby/html_output_buffer.rb
@@ -238,6 +238,11 @@ module Orgmode
@buffer.gsub!(/>/, ">")
end
+ def buffer_indentation
+ indent = " " * @list_indent_stack.length
+ self << indent
+ end
+
def output_indentation
indent = " " * (@list_indent_stack.length - 1)
@output << indent
diff --git a/lib/org-ruby/output_buffer.rb b/lib/org-ruby/output_buffer.rb
index 612961d..9a08795 100644
--- a/lib/org-ruby/output_buffer.rb
+++ b/lib/org-ruby/output_buffer.rb
@@ -93,7 +93,9 @@ module Orgmode
when :metadata, :table_separator, :blank, :comment, :property_drawer_item, :property_drawer_begin_block, :property_drawer_end_block, :blockquote, :center, :example, :src
# Nothing
else
- self << "\n" << line.output_text.strip
+ self << "\n"
+ buffer_indentation
+ self << line.output_text.strip
end
end
end
@@ -251,5 +253,9 @@ module Orgmode
false
end
+
+ def buffer_indentation
+ return false
+ end
end # class OutputBuffer
end # module Orgmode
--
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