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

Properly parse inline NOTEs and Constraint backticks. #80

Open
ronaldtse opened this issue Feb 8, 2022 · 1 comment
Open

Properly parse inline NOTEs and Constraint backticks. #80

ronaldtse opened this issue Feb 8, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@ronaldtse
Copy link
Contributor

ronaldtse commented Feb 8, 2022

Screenshot 2022-02-09 at 1 17 03 AM

image

The Constraint has these extra backticks because there was an empty line in the OCL.

Relevant code:

{% if klass.constraints.size > 0 %}
.{{ klass.constraints.size }}+h| Constraints:
{% for constraint in klass.constraints %}
7+| `{{ constraint.body }}`: `{{ constraint.definition | replace: '|', '\|' }}`

{% endfor %}
{% else %}

h|Constraints: 7+| (none)
{% endif %}
@ronaldtse ronaldtse added the bug Something isn't working label Feb 8, 2022
@ronaldtse
Copy link
Contributor Author

Another broken constraint.
Screenshot 2022-02-09 at 1 21 27 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant