diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-01-24 20:49:58 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-01-24 20:49:58 -0500 |
commit | 0fc8f80a23ad8bc2213af84c169fbc1828978f8a (patch) | |
tree | bba9b57928b77c59ffbb24144af6f5b7cee8efb4 /lib/sisu/v4/dal_doc_objects.rb | |
parent | debian/changelog (4.0.1-1) [posted to experimental, awaiting Wheezy freeze end] (diff) | |
parent | v4 v3: epub, epub_format, provide full depth epub table of contents (diff) |
Merge tag 'sisu_4.0.2' into debian/sid
Diffstat (limited to 'lib/sisu/v4/dal_doc_objects.rb')
-rw-r--r-- | lib/sisu/v4/dal_doc_objects.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sisu/v4/dal_doc_objects.rb b/lib/sisu/v4/dal_doc_objects.rb index 70a4913d..37dfdcd3 100644 --- a/lib/sisu/v4/dal_doc_objects.rb +++ b/lib/sisu/v4/dal_doc_objects.rb @@ -128,9 +128,11 @@ module SiSU_DAL_DocumentStructure end end def heading(h,o=nil) - if not h[:ln] and (h[:lv] and h[:lv]=~/[1-6A-C]/) + if not h[:ln] \ + and (h[:lv] and h[:lv]=~/[1-6A-C]/) h[:ln]=heading_ln(h[:lv]) - elsif not h[:lv] and (h[:ln] and h[:ln].to_s=~/[1-9]/) + elsif not h[:lv] \ + and (h[:ln] and h[:ln].to_s=~/[1-9]/) h[:lv]=heading_lv(h[:ln]) end of= @of #String, classification - group |