Polyrex delimiter should take priority over how a line should be parsed

It appears the delimiter is being ignored.


require 'requestor'

eval Requestor.read('http://rorbuilder.info/r/ruby'){|x| x.require 'polyrex'}

s =<<S
<?polyrex schema="entries[title,tags]/entry[title,completed]" delimiter=' # '?>
title: IPv6 project tasks
tags: projecttasks milestones tasks ipv6
IPV6 Southfield tunnel operational
  IPV6 address for each node
IPV6 Ulster tunnel operational # 16/05/12
  IPV6 address for each node
S

polyrex = Polyrex.new
polyrex.parse s
puts polyrex.to_xml pretty: true


Extract of the ou

tput

Observed the text after the word IPV6 is placed into the 'completed' field.


...
        <format_mask>[!title] [!completed]</format_mask>
      </summary>
      <records>
        <entry id='2'>
          <summary>
            <title>IPV6</title>
            <completed>address for each node</completed>
            <format_mask>[!title] [!completed]</format_mask>
          </summary>
          <records></records>
        </entry>
      </records>
    </entry>
    <entry id='3'>
      <summary>
        <title>IPV6</title>
        <completed>Ulster tunnel operational # 16/05/12</completed>
        <format_mask>[!title] [!completed]</format_mask>
      </summary>
      <records>
        <entry id='4'>
          <summary>
            <title>IPV6</title>
            <completed>address for each node</completed>
            <format_mask>[!title] [!completed]</format_mask>
          </summary>
          <records></records>
        </entry>
      </records>
    </entry>
  </records>
</entries>

Tags:
Source:
1515hrs.txt
Published:
24-05-2012 15:15