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

structuredText with blank lines #199

Open
woellij opened this issue Mar 29, 2022 · 1 comment
Open

structuredText with blank lines #199

woellij opened this issue Mar 29, 2022 · 1 comment
Labels

Comments

@woellij
Copy link

woellij commented Mar 29, 2022

Hi,

thanks for supporting this library.

I've stumbled upon an issue with structured text, where blank lines from html are ommitted in the structuredText.
Is there a way around that?

For example a element with that structure:

 b
    #text
    br
    br
    #text
    br
    br

results in only line-breaked text, but no blank lines.

Thanks for your response in advance.

@taoqf taoqf added the bug label Apr 27, 2022
@taoqf taoqf removed the bug label May 30, 2022
@taoqf
Copy link
Owner

taoqf commented May 31, 2022

Would this help you?

html.replace(/\n/g, '');

@taoqf taoqf added the question label Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants