Method: IsoDoc::Function::Inline#text_parse
- Defined in:
- lib/isodoc/function/inline.rb
#text_parse(node, out) ⇒ Object
114 115 116 117 118 119 120 121 122 123 |
# File 'lib/isodoc/function/inline.rb', line 114 def text_parse(node, out) return if node.nil? || node.text.nil? text = node.to_s if in_sourcecode text = text.gsub("\n", "<br/>").gsub("<br/> ", "<br/> ") .gsub(/ (?= )/, " ") end out << text end |