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

Plain text preview strips line breaks #568

Closed
glaeh opened this issue Nov 3, 2021 · 3 comments
Closed

Plain text preview strips line breaks #568

glaeh opened this issue Nov 3, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@glaeh
Copy link

glaeh commented Nov 3, 2021

When clicking preview for a plain text campaign, the preview window shows the text stripped of line breaks.

In addition to fixing this, it might be nice for the plain text preview to use a fixed width font trather than the browser default.

@glaeh glaeh added the bug Something isn't working label Nov 3, 2021
@ChrisTG742
Copy link
Contributor

ChrisTG742 commented Nov 4, 2021

I think both issues could be easily solved by adding <pre> and </pre> tags to the plain-text preview output.

@glaeh
Copy link
Author

glaeh commented Nov 4, 2021

I think that's the best solution. The <pre> tag just needs a white-space: pre-wrap; attribute so the lines get wrapped.

@knadh knadh closed this as completed in 0bd13fe Nov 5, 2021
@knadh
Copy link
Owner

knadh commented Nov 5, 2021

This was fixed by adding the correct plaintext content type to the HTTP preview response.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants