Closed notJoon closed 1 week ago
Improve snippet formatting by removing common indent prefix from code lines.
AddCodeSnippet
AddUnderlineAndMessage
Before
Simplified output; dots are indicates the indentation
1 | ....if foo() { 2 | ........println() 3 | ....}
After
1 | if foo() 2 | ....println() 3 | }
Description
Improve snippet formatting by removing common indent prefix from code lines.
AddCodeSnippet
builder function to remove the common indentation before displaying each line.AddUnderlineAndMessage
to account for the removed indentation level.Before
Simplified output; dots are indicates the indentation
After