Bug in {mailto} function plugin

Thomas Schulz <[email protected]> Tue, 17 Jan 2006 14:27:25 +0100
Newsgroups gmane.comp.php.smarty.devel
Message-ID <[email protected]>
Hi,

({mailto address=$email encode=javascript_charcode})

renders to: ([email protected] )

I expected: ([email protected])


Could somebody remove the waste line feed?

Thanks, Thomas.




Index: libs/plugins/function.mailto.php
===================================================================
RCS file: /repository/smarty/libs/plugins/function.mailto.php,v
retrieving revision 1.15
diff -u -w -b -r1.15 function.mailto.php
--- libs/plugins/function.mailto.php	25 Feb 2005 17:08:28 -0000	1.15
+++ libs/plugins/function.mailto.php	17 Jan 2006 13:07:54 -0000
@@ -122,7 +122,7 @@
          $_ret .= "))";
          $_ret .= "}\n";
          $_ret .= "//-->\n";
-        $_ret .= "</script>\n";
+        $_ret .= "</script>";

          return $_ret;

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php