You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i came across the bug that this package spins text like this with invalid result:
original string:
The {slow|quick} {brown|blue and {red|yellow}} {fox|deer} {gracefully |}jumps over the {{slow|quick} {fox|deer}}
result:
The slow blue and yellow fox jumps over the deer}
The problem is that on level!=1 you used block replacement in the original string. So when we are in nested block "{{slow|quick} {fox|deer}}" this replacement is applied to the first occurrence of "{slow|quick}" in the original string.
I've made a fix and will provide pull request soon.
The text was updated successfully, but these errors were encountered:
far4599
added a commit
to far4599/gospin
that referenced
this issue
May 12, 2021
Hi, i came across the bug that this package spins text like this with invalid result:
The problem is that on level!=1 you used block replacement in the original string. So when we are in nested block "{{slow|quick} {fox|deer}}" this replacement is applied to the first occurrence of "{slow|quick}" in the original string.
I've made a fix and will provide pull request soon.
The text was updated successfully, but these errors were encountered: