Make the lexer pass whitespace through (as OTHER tokens) for text lines.
With this change, we can recreate the original text-line input exactly. Previously we were inserting a space between every pair of tokens so our output had a lot more whitespace than our input. With this change, we can drop the "-b" option to diff and match the input exactly.
This commit is contained in:
@@ -517,8 +517,6 @@ _token_list_print (token_list_t *list)
|
||||
|
||||
for (node = list->head; node; node = node->next) {
|
||||
_token_print (node->token);
|
||||
if (node->next)
|
||||
printf (" ");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user