Skip to content

Commit

Permalink
Fixed empty line in textat code output
Browse files Browse the repository at this point in the history
  • Loading branch information
neilsf committed Apr 8, 2021
1 parent ac7a231 commit 0332870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/statement/textat_stmt.d
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ class Textat_stmt:Stmt

if(ex.type != 's') {
this.program.appendProgramSegment(offset_code);
this.program.appendProgramSegment(to!string(ex) ~ "\n");
this.program.appendProgramSegment(to!string(ex));
this.program.appendProgramSegment("\t"~to!string(ex.type)~"at\n");
}
else {
this.program.appendProgramSegment(to!string(ex) ~ "\n");
this.program.appendProgramSegment(to!string(ex));
this.program.appendProgramSegment(offset_code);
this.program.appendProgramSegment("\tstringat\n");
}
Expand Down

0 comments on commit 0332870

Please sign in to comment.