From 45399b8fe258e0b141aedf9453abe737ffb8b9af Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Mon, 18 Feb 2013 17:48:44 -0500 Subject: [PATCH] TPAC: Avoid leading / trailing space on pages Use the [%- -%] whitespace-chomping directives to remove the leading space on pages. Signed-off-by: Dan Scott Signed-off-by: Ben Shum --- Open-ILS/src/templates/opac/cnbrowse.tt2 | 2 +- Open-ILS/src/templates/opac/home.tt2 | 4 ++-- Open-ILS/src/templates/opac/login.tt2 | 4 ++-- Open-ILS/src/templates/opac/mylist.tt2 | 4 ++-- Open-ILS/src/templates/opac/password_reset.tt2 | 7 +++---- Open-ILS/src/templates/opac/place_hold.tt2 | 4 ++-- Open-ILS/src/templates/opac/record.tt2 | 4 ++-- Open-ILS/src/templates/opac/results.tt2 | 10 ++++------ Open-ILS/src/templates/opac/sms_cn.tt2 | 4 ++-- Open-ILS/src/templates/opac/temp_warn.tt2 | 4 ++-- 10 files changed, 22 insertions(+), 25 deletions(-) diff --git a/Open-ILS/src/templates/opac/cnbrowse.tt2 b/Open-ILS/src/templates/opac/cnbrowse.tt2 index a290b64546..f4d7e78f83 100644 --- a/Open-ILS/src/templates/opac/cnbrowse.tt2 +++ b/Open-ILS/src/templates/opac/cnbrowse.tt2 @@ -1,4 +1,4 @@ -[% # This is the stand-alone call-number browser. This mainly wraps around +[%- # This is the stand-alone call-number browser. This mainly wraps around # the same guts as the "shelf browser" part of a record results page. PROCESS "opac/parts/header.tt2"; diff --git a/Open-ILS/src/templates/opac/home.tt2 b/Open-ILS/src/templates/opac/home.tt2 index 19dfc58441..8ede2cfdd3 100644 --- a/Open-ILS/src/templates/opac/home.tt2 +++ b/Open-ILS/src/templates/opac/home.tt2 @@ -1,4 +1,4 @@ -[% PROCESS "opac/parts/header.tt2"; +[%- PROCESS "opac/parts/header.tt2"; WRAPPER "opac/parts/base.tt2"; INCLUDE "opac/parts/topnav.tt2"; ctx.page_title = l("Home") %] @@ -12,4 +12,4 @@
-[% END %] +[%- END %] diff --git a/Open-ILS/src/templates/opac/login.tt2 b/Open-ILS/src/templates/opac/login.tt2 index f6892bb7a9..1c7d41a375 100644 --- a/Open-ILS/src/templates/opac/login.tt2 +++ b/Open-ILS/src/templates/opac/login.tt2 @@ -1,4 +1,4 @@ -[% PROCESS "opac/parts/header.tt2"; +[%- PROCESS "opac/parts/header.tt2"; WRAPPER "opac/parts/base.tt2"; INCLUDE "opac/parts/topnav.tt2"; basic_search = "f"; @@ -12,4 +12,4 @@
-[% END %] +[%- END %] diff --git a/Open-ILS/src/templates/opac/mylist.tt2 b/Open-ILS/src/templates/opac/mylist.tt2 index b77eeaec72..1da99147cc 100644 --- a/Open-ILS/src/templates/opac/mylist.tt2 +++ b/Open-ILS/src/templates/opac/mylist.tt2 @@ -1,4 +1,4 @@ -[% PROCESS "opac/parts/header.tt2"; +[%- PROCESS "opac/parts/header.tt2"; PROCESS "opac/parts/misc_util.tt2"; WRAPPER "opac/parts/base.tt2"; INCLUDE "opac/parts/topnav.tt2"; @@ -16,4 +16,4 @@
-[% END %] +[%- END %] diff --git a/Open-ILS/src/templates/opac/password_reset.tt2 b/Open-ILS/src/templates/opac/password_reset.tt2 index bbf9418c89..27f079ef47 100644 --- a/Open-ILS/src/templates/opac/password_reset.tt2 +++ b/Open-ILS/src/templates/opac/password_reset.tt2 @@ -1,8 +1,8 @@ -[% PROCESS "opac/parts/header.tt2"; +[%- PROCESS "opac/parts/header.tt2"; WRAPPER "opac/parts/base.tt2"; INCLUDE "opac/parts/topnav.tt2"; ctx.page_title = l('Library system password reset request form'); -%] +-%]
[% INCLUDE "opac/parts/searchbar.tt2" %]
@@ -67,5 +67,4 @@ [% END %] -[% END %] - +[%- END %] diff --git a/Open-ILS/src/templates/opac/place_hold.tt2 b/Open-ILS/src/templates/opac/place_hold.tt2 index 3c8d89e99e..423198c3ba 100644 --- a/Open-ILS/src/templates/opac/place_hold.tt2 +++ b/Open-ILS/src/templates/opac/place_hold.tt2 @@ -1,4 +1,4 @@ -[% PROCESS "opac/parts/header.tt2"; +[%- PROCESS "opac/parts/header.tt2"; WRAPPER "opac/parts/base.tt2"; INCLUDE "opac/parts/topnav.tt2"; ctx.page_title = l("Place Hold") %] @@ -16,4 +16,4 @@
-[% END %] +[%- END %] diff --git a/Open-ILS/src/templates/opac/record.tt2 b/Open-ILS/src/templates/opac/record.tt2 index 374cca41cf..4576493bda 100644 --- a/Open-ILS/src/templates/opac/record.tt2 +++ b/Open-ILS/src/templates/opac/record.tt2 @@ -1,4 +1,4 @@ -[% PROCESS "opac/parts/header.tt2"; +[%- PROCESS "opac/parts/header.tt2"; WRAPPER "opac/parts/base.tt2"; INCLUDE "opac/parts/topnav.tt2"; ctx.page_title = l("Record Detail"); @@ -22,4 +22,4 @@
-[% END %] +[%- END %] diff --git a/Open-ILS/src/templates/opac/results.tt2 b/Open-ILS/src/templates/opac/results.tt2 index cdbdc193ad..639ebc4db4 100644 --- a/Open-ILS/src/templates/opac/results.tt2 +++ b/Open-ILS/src/templates/opac/results.tt2 @@ -1,5 +1,4 @@ -[% PROCESS "opac/parts/header.tt2"; - +[%- PROCESS "opac/parts/header.tt2"; WRAPPER "opac/parts/base.tt2"; INCLUDE "opac/parts/topnav.tt2"; @@ -16,7 +15,7 @@ PROCESS "opac/parts/misc_util.tt2"; PROCESS get_library; -%] +-%]
[% INCLUDE "opac/parts/searchbar.tt2" took_care_of_form=1 %] @@ -47,8 +46,7 @@ @@ -77,4 +75,4 @@

-[% END %] +[%- END %] diff --git a/Open-ILS/src/templates/opac/sms_cn.tt2 b/Open-ILS/src/templates/opac/sms_cn.tt2 index 4281d5d8dc..b3d554fb79 100644 --- a/Open-ILS/src/templates/opac/sms_cn.tt2 +++ b/Open-ILS/src/templates/opac/sms_cn.tt2 @@ -1,4 +1,4 @@ -[% PROCESS "opac/parts/header.tt2"; +[%- PROCESS "opac/parts/header.tt2"; WRAPPER "opac/parts/base.tt2"; INCLUDE "opac/parts/topnav.tt2"; ctx.page_title = l("Send Call Number via Text/SMS") %] @@ -46,4 +46,4 @@
-[% END %] +[%- END %] diff --git a/Open-ILS/src/templates/opac/temp_warn.tt2 b/Open-ILS/src/templates/opac/temp_warn.tt2 index 4747f6c3a6..525db1f07a 100644 --- a/Open-ILS/src/templates/opac/temp_warn.tt2 +++ b/Open-ILS/src/templates/opac/temp_warn.tt2 @@ -1,4 +1,4 @@ -[% PROCESS "opac/parts/header.tt2"; +[%- PROCESS "opac/parts/header.tt2"; PROCESS "opac/parts/misc_util.tt2"; WRAPPER "opac/parts/base.tt2"; INCLUDE "opac/parts/topnav.tt2"; @@ -25,4 +25,4 @@
-[% END %] +[%- END %] -- 2.11.0