Styling Warnings¶
WARN-HEADING-MARGIN-REDEFINED: Authored heading margin now sizes fewer headings¶
- Level: warning
- Domain: compile
- Suppressible: yes
Message template:
Fix: Delete the key to take the theme's spacing, or keep it for the levels it still sizes. style.text.paragraph sets the gap the other levels take.
Fires when a board authors style.text.heading.margin_top or margin_bottom. Both used to set the space above and below every markdown heading and below every board and section title. Now margin_top sets the space above H1 and H2 only and margin_bottom the space below H2 to H6 only; H3 to H6 take the paragraph gap above them, H1 takes it below, and a board or section title takes it below from style.text.paragraph. The authored value is unchanged and valid, so the board renders differently with nothing else to tell the author. Emitted by compile/validate/authoring_warnings.py.
WARN-HEADING-TRAILING-PERIOD: Heading ends with a period¶
- Level: warning
- Domain: compile
- Suppressible: yes
Message template:
Fix: Delete the trailing period from the title.
Fires when a board, section, tab, or chart title: ends with a period; axis and legend titles are labels and are not checked. Headings are title-cased and carry no closing punctuation; the engine never strips an authored period for you. An ellipsis does not count. Emitted by compile/validate/authoring_warnings.py.
WARN-LABEL-TITLE-CASE: Authored label is in Title Case¶
- Level: warning
- Domain: compile
- Suppressible: yes
Message template:
{text!r} capitalizes its words like a heading; labels print as written, so it will show in Title Case.
Fix: Write the label in sentence case, keeping proper nouns and acronyms capitalized. Leave it as is if the capitals are proper nouns.
Fires when an authored label, x_label, y_label or field_labels entry is shaped like a headline: its second word is a plain capitalized word, every later word that is not a small word (by, of, per, ...) is one too, and at least two words after the first are capitalized (Avg Order Value, Revenue By Region). Sales in North America and Griddle Royale launched in March do not fire. Subtitles and query data are never checked. Headings are title-cased for you; every other label is sentence case, and an authored label prints exactly as typed. Acronyms (ARR) and mixed-case words (iOS) are not plain capitalized words. Emitted by compile/validate/authoring_warnings.py.