Skip to content

Commit

Permalink
Unify documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef-Friedrich committed Feb 19, 2018
1 parent 31cb7ae commit 8e7fc7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tmep/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ def tmpl_lower(text):
def tmpl_num(number, count=2):
"""Pad decimal number with leading zeros
* synopsis: ``%num{number, count}``
* synopsis: ``%num{number,count}``
* description: Pad decimal number with leading zeros.
* example: ``%num{$track, 3}``
* example: ``%num{$track,3}``
"""
return str(number).zfill(int(count))

Expand Down Expand Up @@ -264,8 +264,8 @@ def tmpl_sanitize(text):
def tmpl_shorten(text, max_size=32):
"""Shorten the given text to ``max_size``
* synopsis: ``%shorten{text}`` or ``%shorten{text, max_size}``
* example: ``%shorten{$title, 32}``
* synopsis: ``%shorten{text}`` or ``%shorten{text,max_size}``
* example: ``%shorten{$title,32}``
* description: Shorten “text” on word boundarys.
"""
max_size = int(max_size)
Expand Down

0 comments on commit 8e7fc7a

Please sign in to comment.