Issue #403 - Special DEBUG change to 'see' tabs

This commit is contained in:
Geoff McLane 2017-11-05 18:04:52 +01:00
parent 2aeb2eeb7a
commit b58abe30d0
1 changed files with 9 additions and 0 deletions

View File

@ -63,6 +63,9 @@ static tmbstr get_text_string(Lexer* lexer, Node *node)
if (c == '\n') {
buffer[i++] = '\\';
buffer[i++] = 'n';
} else if (c == '\t') {
buffer[i++] = '\\';
buffer[i++] = 't';
} else if ( c == ' ' ) {
if (!insp)
buffer[i++] = c;
@ -84,6 +87,9 @@ static tmbstr get_text_string(Lexer* lexer, Node *node)
if (c == '\n') {
buffer[i++] = '\\';
buffer[i++] = 'n';
} else if (c == '\t') {
buffer[i++] = '\\';
buffer[i++] = 't';
} else if ( c == ' ' ) {
if (!insp)
buffer[i++] = c;
@ -116,6 +122,9 @@ static tmbstr get_text_string(Lexer* lexer, Node *node)
if (c == '\n') {
buffer[i++] = '\\';
buffer[i++] = 'n';
} else if (c == '\t') {
buffer[i++] = '\\';
buffer[i++] = 't';
} else if ( c == ' ' ) {
if (!insp)
buffer[i++] = c;