New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paragraphs and line breaking in HTML posts #41

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
3 participants
@rwmpelstilzchen

rwmpelstilzchen commented May 28, 2013

Hi,

Thanks for Exitwp. I've used it for migrating my data from my (old) WordPress blog to Jekyll. ☺

My posts are in HTML, which is the default in WP. The migration ran smoothly, but I've noticed that Exitwp outputs the content of the posts as-is. Now, when manually editing HTML posts in WP one can omit <p>s and <br />s and they are automatically added using the wpautop PHP command; thus, all of the paragraphs and line breaks in Exitwp's output were not processed by the browser as such, since they were whitespaces.

The pull request fixes this. Using this Python implementation of wpautop. It changes the default target format from Markdown to HTML, because the conversion to Markdown loses data (I think you might want to add a warning about this in the comment on target/output formats in the configuration file).

Thanks,
Júda

@thomasf

This comment has been minimized.

Show comment
Hide comment
@thomasf

thomasf May 13, 2014

Owner

Hello, I think that markdown should remain the default output format.

Owner

thomasf commented May 13, 2014

Hello, I think that markdown should remain the default output format.

@rwmpelstilzchen

This comment has been minimized.

Show comment
Hide comment
@rwmpelstilzchen

rwmpelstilzchen May 15, 2014

OK, but don't you think paragraph separation and line breaking should be properly processed?

rwmpelstilzchen commented May 15, 2014

OK, but don't you think paragraph separation and line breaking should be properly processed?

@thomasf

This comment has been minimized.

Show comment
Hide comment
@thomasf

thomasf May 15, 2014

Owner

Yes, that is probably desirable for most situations.

Owner

thomasf commented May 15, 2014

Yes, that is probably desirable for most situations.

@SeanFromIT

This comment has been minimized.

Show comment
Hide comment
@SeanFromIT

SeanFromIT Sep 21, 2018

I like the linebreaks_wp.py additions, I feel like this would address some of the things I had to clean-up manually after migration.

SeanFromIT commented Sep 21, 2018

I like the linebreaks_wp.py additions, I feel like this would address some of the things I had to clean-up manually after migration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment