• Resolved Josh Habdas

    (@jhabdas)


    First off, I want to tell you how pleased I am to see such an extensible plugin covering a space others are charging $60 a month for. I’ve spent a lot of time looking for a plugin like this and the only reason I missed it the first few times around was due to the name not being something specific like “feed importer” or “atom importer”. But now that I’ve found it I’m absolutely thrilled.

    I’m importing a Jekyll site into WordPress and have fashioned the Jekyll Feed Gem to output collections. This plugin took care of importing 97 collection items in a single go and did so rather quickly, and with a good UX, which has made me a very happy camper.

    Here are my initial observations upon import of my Atom 1.0 feed:

    • When importing content from a file I’m getting “nn” characters between my paragraphs. I’m using PHP 7.0 when operating the plugin.
    • Under the same environment I’m also seeing what’s probably a related issue while ordered lists are rendered.

    Here is a screenshot of what I mean:

    And the code snippet from the feed for the section pictured.

    Is this a known issue? And, if so, a suggested workaround other than removing the \n and \t from my feed prior to import?

    Again, I’m positively floored to have found this as I was about to give up hope of importing Atom into my WP site and start writing my own plugin for content migrations. So glad I kept looking before I started writing any code.

Viewing 1 replies (of 1 total)
  • Thread Starter Josh Habdas

    (@jhabdas)

    Yeah, this is a bug in the plugin. Not sure if it occurs under versions of PHP other than 7 but I’m seeing it in 7.x.

    Workaround is to transform XML file. Here’s the script I’m using to do so until the bug is resolved: tr -d "\n" < feed.xml > out.xml. Thankfully in my case I’m not doing this over the wire.

Viewing 1 replies (of 1 total)
  • The topic ‘Handling explicit line feeds and tabs’ is closed to new replies.