Skip to content

Missing support for trim method. #58

Description

@rayniel95

I do not sure if this is a bug or a feature (according to #47 (comment)). But if I execute:

import airspeed

t = airspeed.Template("""
#set($some="      some  ")
$some.trim()
$some.strip()
""")
people = [{'name': 'Bill', 'age': 100}, {'name': 'Bob', 'age': 90}, {'name': 'Mark', 'age': 25}]
print(t.merge(locals()))

the output is:


$some.trim()
some

so, for some reason the trim method used to remove white spaces in Java need to be changed to its Python equivalent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions