Skip to content

Commit 4d84194

Browse files
committed
Document pad_content function
1 parent a74fda0 commit 4d84194

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

alot/widgets/search.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ def build_text_part(name, thread, struct):
181181

182182

183183
def pad_content(content, alignment, min_width):
184+
"""
185+
pad 'content' to 'min_width' justified according to 'alignment'.
186+
"""
184187
if alignment == 'left':
185188
return content.ljust(min_width)
186189
elif alignment == 'center':

0 commit comments

Comments
 (0)