Method: ConverterBase#calc_cr_count

Defined in:
lib/converterbase.rb

#calc_cr_count(str) ⇒ Object



1051
1052
1053
1054
# File 'lib/converterbase.rb', line 1051

def calc_cr_count(str)
  head_cr_count = str.index(/[^\n]/)
  head_cr_count > 2 ? 2 : head_cr_count
end