app/models/timed_script2/split_processor.rb
# Process items that are inbetween timestamp tags
Process items that are inbetween timestamp tags
Process items that are inbetween timestamp tags
def clean_up_inbetweeners(slices)
      slices.each_with_index do |item, index|
        pre, time, content = item
        if pre.length > 0
          if index == 0
            item[2] = "#{pre.lstrip}#{item[2]}"
            item[0] = ""
          else
            slices[index - 1][2] << pre
            item[0] = ""
          end
        end
      end
      slices.pop if slices.last == ["", nil, nil]
      slices.map do |_pre, time, content|
        [time, content]
      end
    end
def clean_up_inbetweeners ( slices ) slices . each_with_index do | item , index | pre , time , content = item if pre . length > 0 if index == 0 item [ 2 ] = "#{pre.lstrip}#{item[2]}" item [ 0 ] = "" else slices [ index - 1 ] [ 2 ] << pre item [ 0 ] = "" end end end slices . pop if slices . last == [ "" , nil , nil ] slices . map do | _pre , time , content | [ time , content ] end end
Process items that are inbetween timestamp tags
Process items that are inbetween timestamp tags
slices
<not_specific>