diff --git a/Web-documentation/blocks/comment.html.twig b/Web-documentation/blocks/comment.html.twig new file mode 100644 index 0000000..0f0e5b3 --- /dev/null +++ b/Web-documentation/blocks/comment.html.twig @@ -0,0 +1,4 @@ +{%- if comment is not null -%} +
{{ comment }}
+{%- endif -%} \ No newline at end of file diff --git a/Web-documentation/methods.html.twig b/Web-documentation/methods.html.twig index 1eaed1f..8ebf055 100644 --- a/Web-documentation/methods.html.twig +++ b/Web-documentation/methods.html.twig @@ -119,10 +119,8 @@{{ description }}
- {% if comment is not null -%} -{{ comment }}
- {%- endif %} + {%- include 'blocks/comment.html.twig' with { comment: comment } %} + diff --git a/Web-documentation/structure_enumeration.html.twig b/Web-documentation/structure_enumeration.html.twig index 5ca174e..1c8f589 100644 --- a/Web-documentation/structure_enumeration.html.twig +++ b/Web-documentation/structure_enumeration.html.twig @@ -31,10 +31,7 @@{{ description }}
- {% if comment is not null -%} -{{ comment }}
- {%- endif %} + {%- include 'blocks/comment.html.twig' with { comment: comment } %}{{ description }}
- {% if comment is not null -%} -{{ comment }}
- {%- endif %} + {%- include 'blocks/comment.html.twig' with { comment: comment } %}