comparison mercurial/templates/paper/shortlog.tmpl @ 20066:64b4f0cd7336 stable

templater: fix escaping in nested string literals (issue4102) Before the templater got extended for nested expressions, it made sense to decode string escapes across the whole string. Now we do it on a piece by piece basis.
author Matt Mackall <mpm@selenic.com>
date Mon, 18 Nov 2013 14:02:26 -0500
parents ac08ff370977
children 43cfad930d38
comparison
equal deleted inserted replaced
20064:99c4b8f79324 20066:64b4f0cd7336
78 function (htmlText, previousVal) \{ 78 function (htmlText, previousVal) \{
79 var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); 79 var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
80 return m ? m[1] : null; 80 return m ? m[1] : null;
81 }, 81 },
82 '.bigtable > tbody:nth-of-type(2)', 82 '.bigtable > tbody:nth-of-type(2)',
83 '<tr class="%class%">\ 83 '<tr class="%class%">\\
84 <td colspan="3" style="text-align: center;">%text%</td>\ 84 <td colspan="3" style="text-align: center;">%text%</td>\\
85 </tr>' 85 </tr>'
86 ); 86 );
87 </script> 87 </script>
88 88
89 </div> 89 </div>