aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/dal_doc_str.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-12-02 03:28:19 -0500
committerRalph Amissah <ralph@amissah.com>2011-12-02 03:32:06 -0500
commitacd2e817b84d2c9d047c9814d49719e8fe735db1 (patch)
treebb07cf04aa69c3a2d7cccca18428ce57e6df6dff /lib/sisu/v3/dal_doc_str.rb
parentv3, require iconv (removed), should use String#encode instead, watch (diff)
v3: dal, codeblocks, start flush left (no buffer spaces at start of line)
* allows cut & paste of codeblocks (from some output formats) [requested by chals irc.oftc]
Diffstat (limited to 'lib/sisu/v3/dal_doc_str.rb')
-rw-r--r--lib/sisu/v3/dal_doc_str.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sisu/v3/dal_doc_str.rb b/lib/sisu/v3/dal_doc_str.rb
index 52425437..2bf0305e 100644
--- a/lib/sisu/v3/dal_doc_str.rb
+++ b/lib/sisu/v3/dal_doc_str.rb
@@ -863,7 +863,7 @@ module SiSU_document_structure_extract
parent=node1=node2=node3=node4=node5=node6=nil
data.each do |dob|
h={}
- if dob.obj !~ regex_exclude_ocn_and_node \
+ if (dob.obj !~ regex_exclude_ocn_and_node || dob.is =='code') \
and dob.of !~/(?:comment|layout|meta)/ \
and dob.obj !~/#{Mx[:pa_non_object_no_heading]}|#{Mx[:pa_non_object_dummy_heading]}/ \
and dob.ocn_