djlint / djLint

✨ HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang
https://djLint.com
GNU General Public License v3.0
686 stars 84 forks source link

[BUG] [Formatter] Additional space added as auto-correct of parentheses in text of translated `_()` #698

Closed nitsujri closed 1 year ago

nitsujri commented 1 year ago

System Info

Issue

apps/templates/companies/dash_area/_sidebar.html
───────────────────────────────────────────────────────────────────────────────
@@ -62,7 +62,7 @@

                  href="{% url 'companies:orders:list' %}"
                  data-placement="left">
                 <i class="bi bi-receipt-cutoff nav-icon"></i>
-                <span class="nav-link-title">{{ _("Orders (Selling)") }}</span>
+                <span class="nav-link-title">{{ _("Orders (Selling) ") }}</span>
               </a>
             </div>
             <span class="dropdown-header mt-4">{{ _("Company") }}</span>

There is an additional space after "Orders (Selling)" being added in as part of the auto-correct.

welcome[bot] commented 1 year ago

Thanks for opening your first issue here!

christopherpickering commented 1 year ago

:tada: This issue has been resolved in version 1.31.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: