Skip to content
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

Use raw data (rather than entities parsed version); required for new line preservation #38

Merged
merged 1 commit into from
Oct 19, 2017

Conversation

jamesporter
Copy link
Contributor

I was processing some content which had code samples. Unfortunately the newlines were lost in the entities process.

This is simplest way I could think of solving this (can pass in an optional rawData along with data to preserve the raw string (with newlines). If nothing is supplied will just use content.data as before.

@pedrosanta
Copy link
Collaborator

Hi @jamesporter,

Just an heads up that I've merged #51 that reverts this PR but also removes white space stripping so you can just use/set content.data as usual from now on, and that whitespace stripping shouldn't occur.

Will release a new version with this soon.

Cheers!

@jamesporter
Copy link
Contributor Author

Thanks

zbrongyaozb pushed a commit to zbrongyaozb/epub-gen that referenced this pull request Aug 2, 2022
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants