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

It should be possible to combine markup without allowing space inserted on rendering #103

Open
leftaroundabout opened this issue May 20, 2016 · 0 comments

Comments

@leftaroundabout
Copy link

Something noncompletely unreasonable like

"non" <> H.i "complete" <> "ly"

will give different results depending on which rendered is used:

  • Text.Blaze.Renderer.Text.renderMarkup gives

     non<i>complete</i>ly
    

    as intended.

  • Text.Blaze.Renderer.Pretty.renderMarkup gives

     non
     <i>
       complete
     </i>
     ly
    

    which will be shown in the browser as

    non complete ly

A possible workaround is to encapsulate such content with H.unsafeLazyByteString . HR.renderHtml, but this doesn't feel safe nor elegant.

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

No branches or pull requests

1 participant