in reply to Re: XML::Twig and the monasteries XML ( normalize_space normalise_space )
in thread XML::Twig and the monasteries XML

> normalise_space? That seems like the ticket

nope

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

  • Comment on Re^2: XML::Twig and the monasteries XML ( normalize_space normalise_space )

Replies are listed 'Best First'.
Re^3: XML::Twig and the monasteries XML ( normalize_space normalise_space )
by Anonymous Monk on Jun 01, 2019 at 00:43 UTC

    nope

    Works for me, no leading newlines

    { author => { 830549 => { content => "haukex" } }, created => "2019-05-28 16:28:57", data => { field => { doctext => { content => "<p>More fun facts! I onc +e wrote a script to search a word list for words that make valid rege +xen which convert one valid word into another.</p> <c> \$ perl -le 'p +rint bangs =~s engender' bands \$ perl -le 'print halved =~s avatar' +halted \$ perl -le 'print stove =~s evener' stone </c>", }, parent_node => { content => 11100640 }, reputation => { content => 21 }, root_node => { content => 11100593 }, }, }, title => "Re^5: What does \$_ = qq~\"\$_\"~ do?", type => { 11 => { content => "note" } }, updated => "2019-05-28 16:28:57", }
      Not for me.

      It would help if you showed your code.

      Probably a version problem?

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

        Not for me. It would help if you showed your code. Probably a version problem?

        Eh?

        print pp $twig->parse( $data)->simplify( normalise_space => 111 );
        XML::Twig 3.49