From c1c85bc114f1d21713394f78e095f71f9b146831 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 2 Nov 2023 13:54:28 -0400 Subject: fixes for >= ruby-3.2 (nix ruby set ruby-3.3) --- org/abstraction.org | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'org/abstraction.org') diff --git a/org/abstraction.org b/org/abstraction.org index 477a5869..e5300c72 100644 --- a/org/abstraction.org +++ b/org/abstraction.org @@ -5730,11 +5730,12 @@ module SiSU_AO_MiscArrangeText else para end - para=if para =~/^(?:code(?:\.[a-z][0-9a-z_]+)?|box(?:\.[a-z_]+)?|poem|alt|group|block|table)\{|^\}(?:code|box|poem|alt|group|block|table)/m + para=if para.to_s =~/^(?:code(?:\.[a-z][0-9a-z_]+)?|box(?:\.[a-z_]+)?|poem|alt|group|block|table)\{|^\}(?:code|box|poem|alt|group|block|table)/m curly_braces(para) else para end + para.to_s end def prepare_text data=@data @@ -5746,7 +5747,7 @@ module SiSU_AO_MiscArrangeText data[0]=data[0].gsub(/^(SiSU\s*[\d.]*)$/,'% \1'). gsub(/^(sisu-[\d.]+)$/,'% \1') end - data.each.map do |para| + data=data.each.map do |para| para=conditional_headings(para) markup_blocks(para) end.flatten @@ -6112,7 +6113,7 @@ module SiSU_AO_Numbering when :extract then Mx[:segname_prefix_auto_num_extract] else '_'*dob.lv.to_i #should not occur end - if possible_seg_name =~/^[0-9]+?\.$/m #!~/[.,:-]+/ + if possible_seg_name.to_s =~/^[0-9]+?\.$/m #!~/[.,:-]+/ possible_seg_name=possible_seg_name. gsub(/\.$/,'') end -- cgit v1.2.3