Skip to content

Adjacent piped text is merged with newline instead of a space #3080

Open
@pborunda

Description

@pborunda

Pug Version: 2.0.3

Node Version: v9.3.0

Input Pug

p
  | The pipe always goes at the beginning of its own line,
  | not counting indentation.

Expected HTML

<p>The pipe always goes at the beginning of its own line, not counting indentation.</p>

Actual HTML

<p>The pipe always goes at the beginning of its own line,
not counting indentation.</p>

Additional Comments

The documentation gives the impression that adjacent piped text is merged with a space, but actual output is merged with a newline.

This example is straight from
https://pugjs.org/language/plain-text.html#piped-text

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions