Movable Type Documentation > Appendices > Appendix: Template Tag Modifiers

ltrim

Type: modifier

Removes leading whitespace from the string.

Example

Suppose a template tag output the string "    foo bar." The ltrim global modifier will automatically strip the leading spaces (the ones to the left) and produce "foo bar."

<mt:tagname ltrim="1" />
This page was last updated on 2008-04-14, 23:55.  

0 User Contributed Notes

Kai said:

How to use ltrim?

Submit a User Contributed Note

User contributed notes are a great way to share the knowledge you have gained in using Movable Type.

If you have a technical question or problem, please visit Movable Type Support.

(If you haven't left a note here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)