I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2005-09-17 01:46:55-07 by bob
insertTable and position=>'after'
Thanks for the answers to my other posts.

I've run into another glitch. When I tried to position a table after a target string, it did not work and the table appeared before the target string.

$loc=$content->selectElementByContent($target); $content->insertTable($loc,"new table",5,5,position=>'after');


The default in Xpath, around line 1834 is to paste_before
if (($opt{'position'}) && ($opt{'position'} eq 'after')) { $element->paste_after($posnode); } else { $element->paste_before($posnode); }


I flipped the if/else around and got it to paste after (I haven't tried to set position=>'before')

Bob
Direct Responses: 1008 | Write a response
Posted on 2005-09-17 08:56:14-07 by jmgdoc in response to 1007
Re: insertTable and position=>'after'

It's a bug... Thank you for being the first user of position 'after' with insertTable ;-)
It's fixed in 2.009 (just uploaded to CPAN)
Direct Responses: Write a response