Skip to content

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

Open
@yaegassy

Description

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"]
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions