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

Starts the indent from the annotation's own line

All 5 scenarios hold

A table written in a source text sits inside an annotation. The formatter indents every line of the block, which means the table lines and the closing quotes. It indents them to the indentation of the annotation's own line, plus one configured level.

The formatter reproduces the indentation of the annotation exactly, whatever mix of tabs and spaces it holds. It then adds the configured level in the configured style.

Source lines hold the block as the author wrote it. Formatted lines hold what the formatter writes back. The rule above says what one level of indent is. This rule says where the level starts from.

expected outcome broken scenario
ScenarioSource linesConfigured indentFormatted lines?
Annotation at the left margin
  • @TableTest("""
  • name|age
  • Alice|30
  • """)
space:4
  • @TableTest("""
  • name | age
  • Alice | 30
  • """)
Annotation indented one level
  • @TableTest("""
  • name|age
  • Alice|30
  • """)
space:4
  • @TableTest("""
  • name | age
  • Alice | 30
  • """)
Tab indentation kept as a tab
  • @TableTest("""
  • name|age
  • Alice|30
  • """)
space:1
  • @TableTest("""
  • name | age
  • Alice | 30
  • """)
Tab style added after a space
  • @TableTest("""
  • name|age
  • Alice|30
  • """)
tab:1
  • @TableTest("""
  • name | age
  • Alice | 30
  • """)
Indent size zero stays flush
  • @TableTest("""
  • name|age
  • Alice|30
  • """)
space:0
  • @TableTest("""
  • name | age
  • Alice | 30
  • """)