Bug 14329: Useless copy/pasta from Template::Plugin::HtmlToText
The synopsis of this TT plugin contains two example lines:
[% myhtml FILTER html2text(leftmargin => 0, rightmargin => 0) %]
[% myhtmltext | html2text %]
These lines have been copied (without too much thought :) to a few templates. Since we do no use the variables myhtml or myhtmltext in these templates, these lines are useless.
Test plan:
[1] Put some items in your cart. And send it.
[2] Send a shelf.
[3] Git grep on myhtml. Should not have results.
NOTE: Sent carts and lists in Intranet and OPAC successfully.
Though, this does bring into question why the letters
have HTML formatting if it is getting removed. That,
however, is beyond the scope of this bug.
Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 4fd923e12e)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
This commit is contained in:
parent
6be5837e06
commit
b2a8948b98
|
|
@ -3,8 +3,6 @@ Your cart
|
|||
<END_SUBJECT>
|
||||
|
||||
[% USE HtmlToText %]
|
||||
[% myhtml FILTER html2text(leftmargin => 0, rightmargin => 0) %]
|
||||
[% myhtmltext | html2text %]
|
||||
|
||||
<HEADER>
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,6 @@ Your list: [% shelfname %]
|
|||
<END_SUBJECT>
|
||||
|
||||
[% USE HtmlToText %]
|
||||
[% myhtml FILTER html2text(leftmargin => 0, rightmargin => 0) %]
|
||||
[% myhtmltext | html2text %]
|
||||
|
||||
<HEADER>
|
||||
[% FILTER html2text %]
|
||||
|
|
|
|||
|
|
@ -3,8 +3,6 @@ Your cart
|
|||
<END_SUBJECT>
|
||||
|
||||
[% USE HtmlToText %]
|
||||
[% myhtml FILTER html2text(leftmargin => 0, rightmargin => 0) %]
|
||||
[% myhtmltext | html2text %]
|
||||
|
||||
<HEADER>
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,6 @@ Your list : [% shelfname %]
|
|||
<END_SUBJECT>
|
||||
|
||||
[% USE HtmlToText %]
|
||||
[% myhtml FILTER html2text(leftmargin => 0, rightmargin => 0) %]
|
||||
[% myhtmltext | html2text %]
|
||||
|
||||
<HEADER>
|
||||
[% FILTER html2text %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue