mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-05-28 17:41:29 +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++;
|
offset++;
|
||||||
/* if > 0x80 it's a token */
|
/* if > 0x80 it's a token */
|
||||||
if (ch1>=0x80) {
|
if (ch1>=0x80) {
|
||||||
|
/* Leading space */
|
||||||
fputc(' ',stdout);
|
fputc(' ',stdout);
|
||||||
for(i=0;i<strlen(applesoft_tokens[ch1-0x80]);i++) {
|
for(i=0;i<strlen(applesoft_tokens[ch1-0x80]);i++) {
|
||||||
fputc(applesoft_tokens[ch1-0x80][i],stdout);
|
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 */
|
/* otherwise it is an ascii char */
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user