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

attributesPerLine

Maximum number of attributes per line when attributes are wrapped (multi-line mode).

Typenumber
Default1
Minimum1

Only applies when attributes are broken onto multiple lines (via attributeLayout or maxInlineTagWidth). Values below 1 are clamped to 1.

Example

attributesPerLine: 1 (default)

<svg>
  <rect
    id="box"
    x="10"
    y="20"
    width="100"
    height="50"
    fill="#ff0000" />
</svg>

attributesPerLine: 2

<svg>
  <rect
    id="box" x="10"
    y="20" width="100"
    height="50" fill="#ff0000" />
</svg>

attributesPerLine: 3

<svg>
  <rect
    id="box" x="10" y="20"
    width="100" height="50" fill="#ff0000" />
</svg>

Config

{
  "svg": {
    "attributesPerLine": 2
  }
}