mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-24 13:32:23 +00:00
asoft-detoken: don't print trailing space on REM
this makes the output of detoken match input of token
This commit is contained in:
parent
3cfcf85a3a
commit
38994ef9a8
@ -97,11 +97,13 @@ int main(int argc, char **argv) {
|
||||
offset++;
|
||||
/* if > 0x80 it's a token */
|
||||
if (ch1>=0x80) {
|
||||
/* Leading space */
|
||||
fputc(' ',stdout);
|
||||
for(i=0;i<strlen(applesoft_tokens[ch1-0x80]);i++) {
|
||||
fputc(applesoft_tokens[ch1-0x80][i],stdout);
|
||||
}
|
||||
fputc(' ',stdout);
|
||||
/* Trailing space, but not if REM */
|
||||
if ((ch1-0x80)!=0x32) fputc(' ',stdout);
|
||||
}
|
||||
/* otherwise it is an ascii char */
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user