-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
preserve whitespace in cloze-prefix and cloze-suffix #755
preserve whitespace in cloze-prefix and cloze-suffix #755
Conversation
CodSpeed Performance ReportMerging #755 will degrade performances by 19.96%Comparing Summary
Benchmarks breakdown
|
✔️ No visual differences introduced by this PR. View Playwright Report (note: open the "playwright-report" artifact) |
Note that this will have conflicts with #733. |
Hi @StefanVukovic99 I think this needs a 2nd look. It's broken other handlebars templates now such as In Anki Card Templates, I have
The card render.result returns me
with a lot of newlines Reverting the commit properly returns |
Sorry for the noise @StefanVukovic99 and thanks for resolving it with me in a DM , I reverted to the default template and it works. I had
in
from an old handlebars template I copied. |
Fixes #744
Basically, it seems the handlebars
~
removes whitespace but not newlines. Instead of trimming the string outputted by handlebars this just removes the newlines.