Implement %ld filter
This commit is contained in:
parent
a2ebec3218
commit
87a7cfb90f
@ -144,6 +144,10 @@ class Parser:
|
||||
# Output as %d
|
||||
variable = variable[:-len('%d')].rstrip()[:-1].rstrip()
|
||||
self.emitter.output_variable_formatted('%d', variable)
|
||||
elif variable.endswith('%ld') and variable[:-len('%ld')].rstrip().endswith('|'):
|
||||
# Output as %ld
|
||||
variable = variable[:-len('%ld')].rstrip()[:-1].rstrip()
|
||||
self.emitter.output_variable_formatted('%ld', variable)
|
||||
else:
|
||||
# No filter - output as text
|
||||
self.emitter.output_variable_as_text(variable)
|
||||
|
Loading…
x
Reference in New Issue
Block a user