Skip to content

Do not split multiple spans #9

Open

Description

@montella1507

Newlines between spans is rendered as a whitespace:
a
b

rendered as "a b".

So i am not sure if the spans should be forced to multilines because you really HAVE to do something like:

a<span *ngIf="">b to be rendered as ab... Maybe we are able to workarround this by using ng-containers despite of spans, but... its awfull and not correct.

Activity

  1. kunajs commented on Jul 20, 2018

    @kunajs

    I agree. For example this:
    My name is <span class="font-green">Jesus</span>.
    is formatted as:

    My name is
    <span class="font-green">Jesus</span>
    .
    

    which creates unwanted HTML space between "Jesus" and "."

    Using ng-container instead of span does the same.
    It is very common scenario that you need to have no space after some tag.

  2. stringham commented on Jul 21, 2018

    @stringham
    Owner

    I'm happy to accept a pull request for this issue, if someone wants to try to fix it.

  3. montella1507 commented on Aug 1, 2018

    @montella1507
    Author

    I am willing to do that in next weeks, when not so busy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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