Method: Net::Text::Reflow.reflow_line_prefix

Defined in:
lib/net/text/reflow.rb

.reflow_line_prefix(line) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/net/text/reflow.rb', line 10

def self.reflow_line_prefix(line)
  m = line.match(/\A([*#>]+ )/)
  return '' unless m
  # Each quote line should begin with the quote mark
  return m[1] if m[1].start_with?('>')

  ' ' * m[1].length
end