diff options
author | Michael Scherer <misc@mageia.org> | 2010-12-16 00:34:47 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-12-16 00:34:47 +0000 |
commit | 7430684ba37ef88f7b499bf21b16b7fe68bd2ee0 (patch) | |
tree | ec82b2f807b81d48407bd8dfa217fe2d9489362d /root/template | |
parent | 8e1dc986e1415501696429bd2d3b58f727e23251 (diff) | |
download | identity-7430684ba37ef88f7b499bf21b16b7fe68bd2ee0.tar identity-7430684ba37ef88f7b499bf21b16b7fe68bd2ee0.tar.gz identity-7430684ba37ef88f7b499bf21b16b7fe68bd2ee0.tar.bz2 identity-7430684ba37ef88f7b499bf21b16b7fe68bd2ee0.tar.xz identity-7430684ba37ef88f7b499bf21b16b7fe68bd2ee0.zip |
- do not produces empty lines, by using [%-, for xhtml validation ( problem signaled by Maarten Vanraes )
Diffstat (limited to 'root/template')
-rw-r--r-- | root/template/pre | 4 | ||||
-rw-r--r-- | root/template/wrapper | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/root/template/pre b/root/template/pre index 581baf7..9f4f1e8 100644 --- a/root/template/pre +++ b/root/template/pre @@ -1,3 +1,3 @@ -[% MACRO l(text, args) BLOCK; +[%- MACRO l(text, args) BLOCK; c.localize(text, args); -END; %] +END; -%] diff --git a/root/template/wrapper b/root/template/wrapper index 8bfee46..710f019 100644 --- a/root/template/wrapper +++ b/root/template/wrapper @@ -1,7 +1,7 @@ -[% MACRO l(text, args) BLOCK; +[%- MACRO l(text, args) BLOCK; c.localize(text, args); -END; %] -[% IF template.name.match('\.(css|js|txt)'); +END; -%] +[%- IF template.name.match('\.(css|js|txt)'); debug("Passing page through as text: $template.name"); content; ELSE; |