Skip to content
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

mixing latex and jinja templates causes jinja to fail, crashing the gunicorn server process #232

Closed
bhpayne opened this issue Aug 29, 2021 · 1 comment
Assignees
Labels

Comments

@bhpayne
Copy link
Member

bhpayne commented Aug 29, 2021

This is a rediscovery of the same issue described on leanprover-community/leanprover-community.github.io#168

The file logs/gunicorn_error.log contained the following failure trace:

  File "/home/appuser/app/templates/central_expressions.html", line 302, in template
    <td>\( \frac{\Delta p}{L} = f_\mathrm{D} \cdot \frac{\rho }{2} \cdot \frac{{\langle v \rangle}^2}{D} \)</td> <!-- expression -->
jinja2.exceptions.TemplateSyntaxError: unexpected char '\\' at 15981
@bhpayne bhpayne self-assigned this Aug 29, 2021
@bhpayne bhpayne added the bug label Aug 29, 2021
@bhpayne
Copy link
Member Author

bhpayne commented Aug 29, 2021

Fix was to remove {{ from the latex. Now the line is

<td>\( \frac{\Delta p}{L} = f_{\mathrm{D}} \cdot \frac{\rho }{2} \cdot \frac{\langle v \rangle^2}{D} \)</td> <!-- expression -->

@bhpayne bhpayne closed this as completed Aug 29, 2021
bhpayne added a commit that referenced this issue Aug 29, 2021
bhpayne added a commit to allofphysicsgraph/ui_v7_website_flask_json that referenced this issue May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant