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

Re-indents every table line from scratch

All 9 scenarios hold

The formatter strips the leading whitespace from each input line. It then re-indents the line with the base indent plus one level of the configured indent. The base indent is the indentation of the surrounding code. A blank line stays completely empty.

The final element of Result lines is the indent of the closing text block quotes. It is empty when the indent size is zero. The next rule shows that line with the quotes on it.

The style is spaces or tabs. With a tab style, each level is that many tab characters, and the formatter keeps them as tabs.

expected outcome broken scenario
ScenarioTable linesBase indentConfigured indentResult lines?
No indent configured
  • name|age
  • Alice|30
“”space:0
  • name | age
  • Alice | 30
  • “”
Spaces, no base indent
  • name|age
  • Alice|30
“”space:4
  • name | age
  • Alice | 30
Spaces on top of a base indent
  • name|age
  • Alice|30
space:2
  • name | age
  • Alice | 30
Tabs, one per level
  • name|age
  • Alice|30
“”tab:1
  • name | age
  • Alice | 30
Tabs, two per level
  • name|age
  • Alice|30
“”tab:2
  • name | age
  • Alice | 30
Input lines indented unevenly
  • name|age
  • Alice|30
  • Bob|25
“”space:4
  • name | age
  • Alice | 30
  • Bob | 25
A header and no data rows
  • name|age
“”space:4
  • name | age
A comment line among the rows
  • name|age
  • // note
  • Alice|30
“”space:2
  • name | age
  • // note
  • Alice | 30
A blank line among the rows
  • name|age
  • Alice|30
  • “”
  • Bob|25
“”space:2
  • name | age
  • Alice | 30
  • “”
  • Bob | 25