1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-09-20 04:24:48 +00:00

Merge pull request #459 from mkilgore/fix-auto-quote-adding

Fix off-by-one error in automatic ending quote addition
This commit is contained in:
Matt Kilgore 2024-02-24 09:58:50 -05:00 committed by GitHub
commit 8a1c3c74d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19885,7 +19885,7 @@ FUNCTION lineformat$ (a$)
'----------------quoted string----------------
IF c = 34 THEN '"
endingquote = INSTR(i + 1, ca$, CHR$(34))
IF endingquote = 0 THEN endingquote = n - 2
IF endingquote = 0 THEN endingquote = n - 1
a2$ = a2$ + sp + createElementString$(MID$(ca$, i + 1, endingquote - 1 - i))
i = endingquote + 1