Using multi-line values in a raw Dynarex document

Example

require 'dynarex'

s =<<EOF
<?dynarex schema='entries/entry(title, desc)'?>
--+
title:random
  #fun

  with spaces
desc: 123 fsdfsd sfds

title: super
desc: cheap talk
EOF

dynarex = Dynarex.new 
dynarex.parse s

puts dynarex.to_xml pretty: true

output:

<?xml version='1.0' encoding='UTF-8'?>
<entries>
  <summary>
    <recordx_type>dynarex</recordx_type>
    <format_mask>[!title] [!desc]</format_mask>
    <schema>entries/entry(title, desc)</schema>
    <default_key>title</default_key>
    <rawdoc_type>rowx</rawdoc_type>
  </summary>
  <records>
    <entry id='1' created='2013-10-06 13:49:52 +0100' last_modified=''>
      <title>random
#fun

with spaces</title>
      <desc>123 fsdfsd sfds</desc>
    </entry>
    <entry id='2' created='2013-10-06 13:49:52 +0100' last_modified=''>
      <title>super</title>
      <desc>cheap talk</desc>
    </entry>
  </records>
</entries>
Tags:
Source:
1537hrs.txt
Published:
06-10-2013 15:37