Line-tree now supports multi-line values

Example

require 'line-tree'

s =<<EOF
a
  line:markdown

    # heading

    * line 1b
    * line 2b

  lineb h123
    lineb2 eee
  linec
EOF

puts LineTree.new(s).to_xml

output:

<?xml version='1.0' encoding='UTF-8'?>
<a><line:markdown># heading

  * line 1b
  * line 2b

</line:markdown><lineb>h123<lineb2>eee</lineb2></lineb><linec/></a>

Note: To make an element multi-line enabled simply put a colon followed by 1 or more characters after the element name.

Tags:
Source:
2301hrs.txt
Published:
05-10-2013 23:01