From 628513d1c148b446a20b87e3fd1f9c84435c0ee5 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Thu, 5 Aug 2021 01:11:33 -0400 Subject: [PATCH] tokenize_asoft: fix handling of linefeeds inside of open quotes was breaking the z output --- utils/asoft_basic-utils/tokenize_asoft.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils/asoft_basic-utils/tokenize_asoft.c b/utils/asoft_basic-utils/tokenize_asoft.c index 46d3d3ff..9b10c8a9 100644 --- a/utils/asoft_basic-utils/tokenize_asoft.c +++ b/utils/asoft_basic-utils/tokenize_asoft.c @@ -145,6 +145,12 @@ static int find_token(void) { return 0; } + /* end quote if end of line */ + if (in_quotes && (ch=='\n')) { + in_quotes=0; + return 0; + } + /* don't skip whitespace in quotes or remarks */ if ((!in_quotes)&&(!in_rem)) { while(ch<=' ') {