Sign in
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

wordpress xml file import skips new line characters in code blocks

  • This topic has 2 replies, 1 voice, and was last updated 1 year, 10 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #7348
    Avatar photonoobhawk

    I have posts in WordPress where code is written in between pre tags. When I import the XML file from wodpress the new line characters in the code block are not maintained and all lines appear in a one single line.


    for example, in WordPress:


    will appear as below in publii:

    line01 line02 line03

    I have used the text editor while writing all the posts, so I write everything using pure HTML and do not use block editor or any other editor.

    Avatar photonoobhawk

    The WordPress site which I am trying to import is :

    Avatar photonoobhawk

    After some digging, I have found the issue:

    So you need to convert new line characters to Line feed ( ) in XML file that is generated by WordPress export. But don’t know how to do it on so many posts.

    Do let me know if any of you know any plugin or any other easy workaround for adding line feed in the pre blocks.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.