Skip to content

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

@leftaroundabout

Description

@leftaroundabout

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions