mmircea16 Addressing issue 694: Moved the logic determining the captured text into helpers.rb:
  - Added test to replicate issue
  - Added simple test to expand coverage
  - Moved code determining the kind of output from action_view_mods - capture_with_haml to helpers - capture_haml
mmircea16 Refactoring: Extracted logic that prettifies a text into a method
mmircea16 Refactoring: Collapsed an intricate if in capture haml to a simpler one