diff options
author | Russ Allbery <rra@cpan.org> | 2021-09-10 19:13:27 -0700 |
---|---|---|
committer | Russ Allbery <rra@cpan.org> | 2021-09-10 19:13:27 -0700 |
commit | 0bcb5bbd9df3a87ea481b5df335b84a7b0ce20b8 (patch) | |
tree | 5f8891bf2cca6ade0dd2449d8bd86673a6a423bc /lib/App/DocKnot/Spin | |
parent | 6dfa02d26f3f9212c670d0f89746f085f77f75c6 (diff) |
Add tests for more spin functionality
Add tests for the commands that aren't currently covered. Fix some
code where I meant to use a local variable rather than a regex
back-reference.
Diffstat (limited to 'lib/App/DocKnot/Spin')
-rw-r--r-- | lib/App/DocKnot/Spin/Thread.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/App/DocKnot/Spin/Thread.pm b/lib/App/DocKnot/Spin/Thread.pm index ff5fe16..4ce0f99 100644 --- a/lib/App/DocKnot/Spin/Thread.pm +++ b/lib/App/DocKnot/Spin/Thread.pm @@ -610,12 +610,12 @@ sub _parse_context { # elements or there is remaining text. This suppresses some # useless black lines. if ($paragraph ne q{}) { - $paragraph .= "\n$1"; + $paragraph .= "\n$spaces"; } else { if ($text ne q{} || $nonblock) { $output .= "\n"; } - $output .= $1; + $output .= $spaces; } } } |