|
@@ -64,9 +64,11 @@ func readfile(filename string) {
|
|
// Ok, is what we have usable, or did it mangle up our Latin1 text?
|
|
// Ok, is what we have usable, or did it mangle up our Latin1 text?
|
|
// hexout(lines[0])
|
|
// hexout(lines[0])
|
|
|
|
|
|
- fmt.Printf("func ANSI%s() [%d]string {\n", strings.Title(basename), len(lines))
|
|
|
|
|
|
+ // fmt.Printf("func ANSI%s() [%d]string {\n", strings.Title(basename), len(lines))
|
|
|
|
+ fmt.Printf("func ANSI%s() []string {\n", strings.Title(basename))
|
|
// insert CP437_to_Unicode in here, if needed.
|
|
// insert CP437_to_Unicode in here, if needed.
|
|
- fmt.Printf(" data := [%d]string {\n", len(lines))
|
|
|
|
|
|
+ // fmt.Printf(" data := [%d]string {\n", len(lines))
|
|
|
|
+ fmt.Print(" data := []string {\n")
|
|
for _, line := range lines {
|
|
for _, line := range lines {
|
|
fmt.Printf(" \"%s\",\n", repr_line(line))
|
|
fmt.Printf(" \"%s\",\n", repr_line(line))
|
|
}
|
|
}
|