[Koha-bugs] [Bug 20657] New: Globally enable PRE_CHOMP and POST_CHOMP in Template Toolkit configuration
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Apr 25 16:44:14 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20657
Bug ID: 20657
Summary: Globally enable PRE_CHOMP and POST_CHOMP in Template
Toolkit configuration
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: oleonard at myacpl.org
QA Contact: testopia at bugs.koha-community.org
As it currently stands, the HTML output by Template Toolkit includes whitespace
anywhere there was a template tag. For example, this is a portion of the
generated source of the staff client home page:
1
2
3
4 <!DOCTYPE html>
5 <!-- TEMPLATE FILE: intranet-main.tt -->
6
7
8
9
10 <html lang="en">
11 <head>
12
13 <title>Koha staff client</title>
Developer tools report: 26.69 KB / 5.83 KB transferred
In contrast, this what the same content looks like with PRE_CHOMP and
POST_CHOMP enabled:
1 <!DOCTYPE html>
2 <!-- TEMPLATE FILE: intranet-main.tt -->
3 <html lang="en"><head>
4 <title>Koha staff client</title>
Developer tools report: 23.29 KB / 5.65 KB transferred
In the samples I looked at this change did not make the HTML source
significantly more difficult to read.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list