aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/dal_doc_str.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v2/dal_doc_str.rb')
-rw-r--r--lib/sisu/v2/dal_doc_str.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v2/dal_doc_str.rb b/lib/sisu/v2/dal_doc_str.rb
index dc9a55b7..46ae8d3c 100644
--- a/lib/sisu/v2/dal_doc_str.rb
+++ b/lib/sisu/v2/dal_doc_str.rb
@@ -728,7 +728,7 @@ module SiSU_document_structure_extract
@dob
end
def structure_markup_normalize #needs a bit of thinking
- dob=if @md.markup_version.to_f < 0.38 #%convert internal representation, consider making 0.38 structure default ([A-C1-6] instead of [1-9]), requires downstream changes
+ dob=if @md.markup_version.determined < 0.38 #%convert internal representation, consider making 0.38 structure default ([A-C1-6] instead of [1-9]), requires downstream changes
@dob.gsub!(/^[456]~/,'!_')
@dob.gsub!(/^3~(\S+)/,"#{Mx[:lv_o]}6:\\1#{Mx[:lv_c]}")
@dob.gsub!(/^3~\s+/,"#{Mx[:lv_o]}6:#{Mx[:lv_c]}")
@@ -756,7 +756,7 @@ module SiSU_document_structure_extract
end
end
def structure_marks
- t_o=if @md.markup_version.to_f < 0.38
+ t_o=if @md.markup_version.determined < 0.38
@t_o.gsub!(/^1~(\S+)/,"#{Mx[:lv_o]}1:\\1#{Mx[:lv_c]}")
@t_o.gsub!(/^1~\s+/,"#{Mx[:lv_o]}1:#{Mx[:lv_c]}")
@t_o.gsub!(/^2~(\S+)/,"#{Mx[:lv_o]}2:\\1#{Mx[:lv_c]}")