aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3dv/epub_concordance.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v3dv/epub_concordance.rb')
-rw-r--r--lib/sisu/v3dv/epub_concordance.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sisu/v3dv/epub_concordance.rb b/lib/sisu/v3dv/epub_concordance.rb
index 40dd83f5..e2e5bb5c 100644
--- a/lib/sisu/v3dv/epub_concordance.rb
+++ b/lib/sisu/v3dv/epub_concordance.rb
@@ -206,7 +206,10 @@ WOK
@word_map={}
@dal_array.each do |line|
if defined? line.ocn
- if line.is =~/heading/ and line.ln==4; @seg=line.name
+ if (line.is ==:heading \
+ || line.is ==:heading_insert) \
+ && line.ln==4
+ @seg=line.name
end
if line.ocn.to_s =~/\d+/; toy=line.ocn.to_s
end