mirror of
https://github.com/tjboldt/ProDOS-Utilities.git
synced 2024-12-13 03:29:08 +00:00
parent
9e6c2fcc22
commit
98ab2d4f0a
2
main.go
2
main.go
@ -17,7 +17,7 @@ import (
|
||||
"github.com/tjboldt/ProDOS-Utilities/prodos"
|
||||
)
|
||||
|
||||
const version = "0.4.4"
|
||||
const version = "0.4.5"
|
||||
|
||||
func main() {
|
||||
var fileName string
|
||||
|
@ -190,6 +190,9 @@ func ConvertTextToBasic(text string) ([]byte, error) {
|
||||
|
||||
// skip initial whitespace and look for the start of a line number
|
||||
if starting {
|
||||
if c == '\n' { // skip blank lines
|
||||
continue
|
||||
}
|
||||
if c == ' ' {
|
||||
continue
|
||||
}
|
||||
@ -230,6 +233,7 @@ func ConvertTextToBasic(text string) ([]byte, error) {
|
||||
parsingRem = false
|
||||
parsingString = false
|
||||
foundToken = false
|
||||
skipChars = 0
|
||||
currentByte += basicLine.Len()
|
||||
currentByte += 3
|
||||
// write address of next line
|
||||
|
Loading…
Reference in New Issue
Block a user