Skip to content

Commit

Permalink
no text reactivated
Browse files Browse the repository at this point in the history
  • Loading branch information
Egbert.Voigt authored and Egbert.Voigt committed Mar 23, 2020
1 parent 6e46840 commit 5c33afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/antlr/v4/runtime/CommonToken.d
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ class CommonToken : WritableToken
channelStr=",channel=" ~ to!string(channel);
}
auto txt = getText.get!(string);
if (txt) {
if (txt.length > 0) {
txt = txt.replace("\n","\\n");
txt = txt.replace("\r","\\r");
txt = txt.replace("\t","\\t");
Expand Down

0 comments on commit 5c33afb

Please sign in to comment.