Commit 8321670
committed
Convert indented partial results to a string before splitting
Rendering an indented partial that resolves through @partial-block
crashes with "result.split is not a function" whenever a helper along
the way hands back something other than a plain string, a SafeString
being the common case. This happens with both a real partial-block
and an inline partial, since the indentation code always assumes it's
holding a string once options.indent is set.
Fixes #1695. A prior attempt at this fix
(#1916) went stale without ever getting reviewed; the change here is
the same one-line idea, just reapplied against master with a couple
of regression tests covering both the partial-block and inline-partial
cases from the original report.1 parent 13a7a67 commit 8321670
2 files changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
607 | 626 | | |
608 | 627 | | |
609 | 628 | | |
| |||
0 commit comments