mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Corrected the readspice script to treat the input line as a string
and not a character list when checking the first character of a SPICE netlist for a comment or continuation character.
This commit is contained in:
+2
-2
@@ -57,8 +57,8 @@ proc readspice {netfile} {
|
||||
set fdata {}
|
||||
set lastline ""
|
||||
while {[gets $fnet line] >= 0} {
|
||||
if {[lindex $line 0] != "*"} {
|
||||
if {[lindex $line 0] == "+"} {
|
||||
if {[string index $line 0] != "*"} {
|
||||
if {[string index $line 0] == "+"} {
|
||||
if {[string range $line end end] != " "} {
|
||||
append lastline " "
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user