Show More
@@ -164,6 +164,8 class templater: | |||||
164 |
|
164 | |||
165 | common_filters = { |
|
165 | common_filters = { | |
166 | "escape": cgi.escape, |
|
166 | "escape": cgi.escape, | |
|
167 | "strip": lambda x: x.strip(), | |||
|
168 | "rstrip": lambda x: x.rstrip(), | |||
167 | "age": age, |
|
169 | "age": age, | |
168 | "date": lambda x: util.datestr(x), |
|
170 | "date": lambda x: util.datestr(x), | |
169 | "addbreaks": nl2br, |
|
171 | "addbreaks": nl2br, |
@@ -1,7 +1,7 | |||||
1 | <item> |
|
1 | <item> | |
2 | <title>#desc|firstline|escape#</title> |
|
2 | <title>#desc|strip|firstline|rstrip|escape#</title> | |
3 | <link>#url#?cs=#node|short#</link> |
|
3 | <link>#url#?cs=#node|short#</link> | |
4 | <description><![CDATA[#desc|escape|addbreaks#]]></description> |
|
4 | <description><![CDATA[#desc|strip|escape|addbreaks#]]></description> | |
5 | <author>#author|obfuscate#</author> |
|
5 | <author>#author|obfuscate#</author> | |
6 | <pubDate>#date|rfc822date#</pubDate> |
|
6 | <pubDate>#date|rfc822date#</pubDate> | |
7 | </item> |
|
7 | </item> |
@@ -1,7 +1,7 | |||||
1 | <table class="changelogEntry parity#parity#"> |
|
1 | <table class="changelogEntry parity#parity#"> | |
2 | <tr> |
|
2 | <tr> | |
3 | <th class="age" width="15%">#date|age# ago:</th> |
|
3 | <th class="age" width="15%">#date|age# ago:</th> | |
4 | <th class="firstline">#desc|firstline|escape#</th> |
|
4 | <th class="firstline">#desc|strip|firstline|escape#</th> | |
5 | </tr> |
|
5 | </tr> | |
6 | <tr> |
|
6 | <tr> | |
7 | <th class="changesetRev">changeset #rev#:</th> |
|
7 | <th class="changesetRev">changeset #rev#:</th> |
@@ -11,7 +11,7 | |||||
11 | #archives%archiveentry# |
|
11 | #archives%archiveentry# | |
12 | </div> |
|
12 | </div> | |
13 |
|
13 | |||
14 | <h2>changeset: #desc|escape|firstline#</h2> |
|
14 | <h2>changeset: #desc|strip|escape|firstline#</h2> | |
15 |
|
15 | |||
16 | <table id="changesetEntry"> |
|
16 | <table id="changesetEntry"> | |
17 | <tr> |
|
17 | <tr> | |
@@ -32,7 +32,7 | |||||
32 | <td class="files">#files#</td></tr> |
|
32 | <td class="files">#files#</td></tr> | |
33 | <tr> |
|
33 | <tr> | |
34 | <th class="description">description:</th> |
|
34 | <th class="description">description:</th> | |
35 | <td class="description">#desc|escape|addbreaks#</td> |
|
35 | <td class="description">#desc|strip|escape|addbreaks#</td> | |
36 | </tr> |
|
36 | </tr> | |
37 | </table> |
|
37 | </table> | |
38 |
|
38 |
@@ -1,7 +1,7 | |||||
1 | <item> |
|
1 | <item> | |
2 | <title>#desc|firstline|escape#</title> |
|
2 | <title>#desc|strip|firstline|rstrip|escape#</title> | |
3 | <link>#url#?f=#filenode|short#;file=#file#</link> |
|
3 | <link>#url#?f=#filenode|short#;file=#file#</link> | |
4 | <description><![CDATA[#desc|escape|addbreaks#]]></description> |
|
4 | <description><![CDATA[#desc|strip|escape|addbreaks#]]></description> | |
5 | <author>#author|obfuscate#</author> |
|
5 | <author>#author|obfuscate#</author> | |
6 | <pubDate>#date|rfc822date#</pubDate>> |
|
6 | <pubDate>#date|rfc822date#</pubDate>> | |
7 | </item> |
|
7 | </item> |
@@ -1,7 +1,7 | |||||
1 | <table class="parity#parity#" width="100%" cellspacing="0" cellpadding="0"> |
|
1 | <table class="parity#parity#" width="100%" cellspacing="0" cellpadding="0"> | |
2 | <tr> |
|
2 | <tr> | |
3 | <td align="right" width="15%"><b>#date|age# ago: </b></td> |
|
3 | <td align="right" width="15%"><b>#date|age# ago: </b></td> | |
4 | <td><b><a href="?cs=#node|short#">#desc|firstline|escape#</a></b></td></tr> |
|
4 | <td><b><a href="?cs=#node|short#">#desc|strip|firstline|escape#</a></b></td></tr> | |
5 | <tr> |
|
5 | <tr> | |
6 | <td align="right">revision #filerev#: </td> |
|
6 | <td align="right">revision #filerev#: </td> | |
7 | <td><a href="?f=#filenode|short#;file=#file#">#filenode|short#</a> |
|
7 | <td><a href="?f=#filenode|short#;file=#file#">#filenode|short#</a> |
General Comments 0
You need to be logged in to leave comments.
Login now