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:
commit
8a1c3c74d6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue