Show More
@@ -264,9 +264,9 b' def lower(text):' | |||
|
264 | 264 | return encoding.lower(text) |
|
265 | 265 | |
|
266 | 266 | @templatefilter('nonempty') |
|
267 |
def nonempty( |
|
|
267 | def nonempty(text): | |
|
268 | 268 | """Any text. Returns '(none)' if the string is empty.""" |
|
269 |
return |
|
|
269 | return text or "(none)" | |
|
270 | 270 | |
|
271 | 271 | @templatefilter('obfuscate') |
|
272 | 272 | def obfuscate(text): |
General Comments 0
You need to be logged in to leave comments.
Login now