https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39085

            Bug ID: 39085
           Summary: No space preserved incorrecly after END
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
        Depends on: 38664

The prettier plugin cannot guess if the absence of space was needed, so it got
preserved. However in some cases it's not needed.

Eg.
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt
+                        [% END %]</li
+                    >

We could move the closing li on a separate line for better indentation and
readability.

Also the closing title almost everywhere:
-[% END %]</title>

If we don't want spaces we need to CHOMP


List the candidates with `git grep -P 'END %][^\s|>|;|)|"|[]' **/*.tt`


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38664
[Bug 38664] Tidy the whole codebase
-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to