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

Writes each entry on its own line, closing quotes aligned

All 7 scenarios hold

The formatter lays out a table written as an array of string literals as a block. The opening brace ends its line. Every entry gets a line of its own. The closing brace and parenthesis end the block.

The formatter pads an entry with trailing spaces inside the quotes. The closing quote of every entry then sits in the same column. That is how the array form aligns, where a text block aligns its pipes.

The formatter writes the entries at the configured indent. The Indentation feature says what an indent does in general. An indent takes the form style:size.

expected outcome broken scenario
ScenarioSource linesConfigured indentFormatted lines?
Entries on one line
  • @TableTest({"name|age","Alice|30","Bob|7"})
space:4
  • @TableTest({
  • "name | age",
  • "Alice | 30 ",
  • "Bob | 7 "
  • })
Entries already on lines
  • @TableTest({
  • "name|age",
  • "Alice|30"
  • })
space:4
  • @TableTest({
  • "name | age",
  • "Alice | 30 "
  • })
A single entry
  • @TableTest({"name|age"})
space:4
  • @TableTest({
  • "name | age"
  • })
Wide characters
  • @TableTest({"name|width","你好|4","hello|5"})
space:4
  • @TableTest({
  • "name | width",
  • "你好 | 4 ",
  • "hello | 5 "
  • })
An empty entry
  • @TableTest({"a|b", "", "1|2"})
space:4
  • @TableTest({
  • "a | b",
  • " ",
  • "1 | 2"
  • })
Already laid out
  • @TableTest({
  • "a | b",
  • "1 | 2"
  • })
space:4
  • @TableTest({
  • "a | b",
  • "1 | 2"
  • })
No indent configured
  • @TableTest({"name|age","Alice|30"})
space:0
  • @TableTest({
  • "name | age",
  • "Alice | 30 "
  • })