Keyboard

↓ ↑
move between the rows you can see
→
open a feature, then step into it
←
close a feature, or step out to the one above
Enter
go to the page in focus
Tab
the same rows, plus everything else on the page
/
search the whole report
m
open or close the navigation drawer
Esc
leave the search box, or close the drawer
?
this list

Keeps a comment or blank line in place, with its text

All 5 scenarios hold

A comment line and a blank line take no part in column alignment. The formatter formats the rows around them as one table. It then puts the kept lines back at their original positions, byte for byte.

A comment above the header is the position to get right. The header is the first line that is neither a comment nor a blank. The formatter passes over the comment to find the header, and puts the comment back afterwards.

expected outcome broken scenario
ScenarioTable linesFormatted?
Comment above the header
  • // intro
  • name|age
  • Alice|30
  • // intro
  • name | age
  • Alice | 30
Comment between rows
  • name|age
  • // note
  • Alice|30
  • name | age
  • // note
  • Alice | 30
Comment below the last row
  • name|age
  • Alice|30
  • // trailing
  • name | age
  • Alice | 30
  • // trailing
Blank line between rows
  • name|age
  • Alice|30
  • “”
  • Bob|25
  • name | age
  • Alice | 30
  • “”
  • Bob | 25
Comments and blanks together
  • name|age
  • // First
  • Alice|30
  • “”
  • // Second
  • Bob|25
  • name | age
  • // First
  • Alice | 30
  • “”
  • // Second
  • Bob | 25