Skip to content

Commit

Permalink
[Fix] Fix indenting bug when pretty-printing embedded code
Browse files Browse the repository at this point in the history
  • Loading branch information
0x8000-0000 committed Apr 27, 2020
1 parent e455f9f commit 3e0167d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ public StringBuilder visitCodeBlockDef(SamXParser.CodeBlockDefContext ctx)

addIndent(builder);

final int codeBlockIndent = VisitorUtils.getTokenIndent(ctx, tokenStream) + indentLevel * indentString.length();
final int codeBlockIndent = VisitorUtils.getTokenIndent(ctx, tokenStream) + indentString.length();

builder.append("```(");
builder.append(visit(ctx.language));
Expand Down

0 comments on commit 3e0167d

Please sign in to comment.