Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

blankLines

How blank lines between sibling elements are handled

Type"remove" | "preserve" | "truncate" | "insert"
Default"truncate"

Values

Input

<svg>
  <rect />


  <!--legend-->
  <circle />
</svg>

"remove"

Strip all blank lines between siblings.

<svg>
  <rect />
  <!--legend-->
  <circle />
</svg>

"preserve"

Keep blank lines from source verbatim.

<svg>
  <rect />


  <!--legend-->
  <circle />
</svg>

"truncate"

Collapse 2+ blank lines to exactly 1.

<svg>
  <rect />

  <!--legend-->
  <circle />
</svg>

"insert"

Force exactly 1 blank line between every sibling.

<svg>
  <rect />

  <!--legend-->

  <circle />
</svg>

Config

{
  "svg": {
    "blankLines": "truncate"
  }
}