reuse-tool does not properly handle the whitespace control modifiers in the Jinja2 comment lines #884
bug
Something isn't working
comment-styles
Request for a new comment style, or fixing a bug with these
stale
unresolved
According to Whitespace Control — Template Designer Documentation — Jinja Documentation comments and other Jinja2 constructs can contain modifiers to control their whitespace control behavior, making the following markups possible:
{#- comment #}
{# comment -#}
{#+ comment #}
{# comment +#}
Unfortunately, currently, the reuse-tool doesn't properly handle these modifiers and may consider the
-
/+
signs as part of the license declaration content.Sample input file
Expected behavior
The CC-BY-SA-4.0 license declaration is properly detected.
Current behavior
The
reuse lint
command returns the following output:It appears that the whitespace control modifier is treated literally as part of the license declaration.
Additional information
This issue is reproduced in reuse-tool 2.1.0.
The text was updated successfully, but these errors were encountered: