Method: IsoDoc::Function::Inline#text_parse
- Defined in:
- lib/isodoc/function/inline.rb
#text_parse(node, out) ⇒ Object
149 150 151 152 153 154 155 |
# File 'lib/isodoc/function/inline.rb', line 149 def text_parse(node, out) return if node.nil? || node.text.nil? text = node.to_s text = text.gsub("\n", "<br/>").gsub("<br/> ", "<br/> "). gsub(/[ ](?=[ ])/, " ") if in_sourcecode out << text end |