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

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

Closed
3 tasks done
nitsujri opened this issue Jun 24, 2023 · 2 comments
Labels

Comments

@nitsujri
Copy link

System Info

  • OS: e.g. latest OSX
  • Python Version 3.11.4
  • djLint Version v1.31.0
  • template language: django

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.

@nitsujri nitsujri added 🦠 bug Something isn't working 🧽 formatter labels Jun 24, 2023
@welcome
Copy link

welcome bot commented Jun 24, 2023

Thanks for opening your first issue here!

christopherpickering pushed a commit that referenced this issue Jun 26, 2023
## [1.31.1](v1.31.0...v1.31.1) (2023-06-26)

### Bug Fixes

* **formatter:** fixed formatter formatting ignored code ([5c75d87](5c75d87)), closes [#655](#655)
* **formatter:** fixed function formatting with nested quoted parenthesis ([6d63a6a](6d63a6a)), closes [#698](#698)
* **formatter:** fixed overgrabbing on template tag condensing ([75c3134](75c3134)), closes [#686](#686)
* **formatter:** function index was not formatted correctly ([a197200](a197200)), closes [#693](#693)
@christopherpickering
Copy link
Contributor

🎉 This issue has been resolved in version 1.31.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants