Description
I'd like to use the Django HTML and Jinja(jinja2) formats in "unibeautify cli".
"Beautifier not found: Pretty Diff" is displayed.
$ ./node_modules/.bin/unibeautify -l HTML check.html
Beautifier not found: Pretty Diff
Is there any mistake in my procedure? Or is it a bug?
Repro
Install
npm init -y
npm install -D @unibeautify/cli @unibeautify/beautifier-prettydiff
HTML source (check.html)
{% if latest_question_list %}
<ul>
{% for question in latest_question_list %}
<li><a href="/polls/{{ question.id }}/">{{ question.question_text }}</a></li>
{% endfor %}
</ul>
{% else %}
<p>No polls are available.</p>
{% endif %}
configuration (.unibeautifyrc.json)
{
"HTML": {
"indent_size": 4,
"indent_char": " ",
"wrap_line_length": 100,
"wrap_prose": "always",
"beautifiers": ["Pretty Diff"]
}
}
Description
I'd like to use the
Django HTMLandJinja(jinja2)formats in "unibeautify cli"."Beautifier not found: Pretty Diff" is displayed.
Is there any mistake in my procedure? Or is it a bug?
Repro
Install
HTML source (check.html)
{% if latest_question_list %} <ul> {% for question in latest_question_list %} <li><a href="/polls/{{ question.id }}/">{{ question.question_text }}</a></li> {% endfor %} </ul> {% else %} <p>No polls are available.</p> {% endif %}configuration (.unibeautifyrc.json)
{ "HTML": { "indent_size": 4, "indent_char": " ", "wrap_line_length": 100, "wrap_prose": "always", "beautifiers": ["Pretty Diff"] } }