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

prettydiff is installed, but "Beautifier not found: Pretty Diff" is displayed. #176

Open
yaegassy opened this issue Mar 30, 2021 · 0 comments

Comments

@yaegassy
Copy link

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"]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant