Skip to content

Commit

Permalink
Issue #25 -- Vertical edges of boxes run together
Browse files Browse the repository at this point in the history
Regression Testing
---
Ran ./pre-push: SVG output of three files changed.  Log excerpt:

    === RUN   TestExamples
        ...
        examples-regression_test.go:83: Failed to verify contents of 3 .svg files
        examples-regression_test.go:130: Writing new SVG and HTML delta files into _examples_new/
        examples-regression_test.go:149: 	complicated.html
        examples-regression_test.go:149: 	regression.html
        examples-regression_test.go:149: 	small-grids.html
        ...

Visual inspection of .html files in browser shows fix effective in
_examples_new/small-grids.{html,svg}, and no visually apparent change
in the other two sets of results.
  • Loading branch information
dmullis authored and dmullis committed Jul 17, 2024
1 parent d32cddf commit d30858a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drawable.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,10 @@ func (c *Canvas) getLines(
currentLine = snip(currentLine)
}

if o == S && (r == '.' || lastSeenRune == '\'') {
currentLine = snip(currentLine)
}

switch currentLine.state {
case _Unstarted:
if shouldKeep {
Expand Down

0 comments on commit d30858a

Please sign in to comment.