Ticket #10 (closed defect)

Opened 6 years ago

Last modified 6 years ago

layout not backtracking

Reported by: dherman Owned by: dherman
Priority: critical Milestone:
Component: dherman/pprint.plt Keywords:
Cc: Version:
Racket Version:

Description

Graham Hughes wrote:

the 3.0 version, as put on PLaneT, doesn't actually work for me. Specifically I found that layout was not backtracking for some reason. I replaced it with the version from the 2.x series.

Change History

Changed 6 years ago by dherman

  • status changed from new to closed

This should be fixed in version 3.1 now. There were two fundamental flaws in the layout algorithm:

- it wasn't first trying to fit on one line, it was trying that second

- the internal "cursor" is only advanced on TEXT nodes, so that's where it should test whether the text doesn't fit on the current line (and therefore needs to backtrack)

Note: See TracTickets for help on using tickets.