Fixes some mycology test suite errors

This commit is contained in:
Julien Dessaux 2021-09-26 19:29:00 +02:00
parent 62400c81db
commit 0038f88327
4 changed files with 465 additions and 20 deletions

View file

@ -41,8 +41,8 @@ func Load(fd io.Reader) (*Field, error) {
}
if l.l > 0 {
f.ly++
if f.lx < l.l {
f.lx = l.l
if f.lx-f.x < l.l-l.x {
f.lx = l.l - l.x + f.x
}
f.lines = append(f.lines, *l)
}