dragoncoder047 / schemascii

A command-line tool and library for converting ASCII-art diagrams into nice SVG circuit schematics.
https://dragoncoder047.github.io/schemascii/
GNU General Public License v3.0
7 stars 1 forks source link

`next_wire()` only finds wires that start at (0, 0) #2

Closed dragoncoder047 closed 1 year ago

dragoncoder047 commented 1 year ago

Running wires.py to test it (using wires_test.txt) --

With no blank lines at the top it finds the entire wire as it should

With any leading blank lines it fails.

In either case, it fails to find the wires below the first one once it has processed the wire at (0, 0).

dragoncoder047 commented 1 year ago

Bug was here https://github.com/dragoncoder047/schemascii/blob/bb4b742c0cc74484383f13cb20a7048467098da8/schemascii/wires.py#L76