Show More
@@ -165,6 +165,9 b' def stripdir(text):' | |||
|
165 | 165 | else: |
|
166 | 166 | return dir |
|
167 | 167 | |
|
168 | def nonempty(str): | |
|
169 | return str or "(none)" | |
|
170 | ||
|
168 | 171 | filters = { |
|
169 | 172 | "addbreaks": nl2br, |
|
170 | 173 | "basename": os.path.basename, |
@@ -183,6 +186,7 b' filters = {' | |||
|
183 | 186 | "isodatesec": lambda x: util.datestr(x, '%Y-%m-%d %H:%M:%S %1%2'), |
|
184 | 187 | "json": json, |
|
185 | 188 | "jsonescape": jsonescape, |
|
189 | "nonempty": nonempty, | |
|
186 | 190 | "obfuscate": obfuscate, |
|
187 | 191 | "permissions": permissions, |
|
188 | 192 | "person": person, |
General Comments 0
You need to be logged in to leave comments.
Login now