aboutsummaryrefslogtreecommitdiff
path: root/lesana/collection.py
diff options
context:
space:
mode:
Diffstat (limited to 'lesana/collection.py')
-rw-r--r--lesana/collection.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lesana/collection.py b/lesana/collection.py
index a8980eb..d2f029d 100644
--- a/lesana/collection.py
+++ b/lesana/collection.py
@@ -51,7 +51,9 @@ class Entry(object):
if not field.get('help', None) is None:
data += "# {name} ({type}): {help}\n".format(**field)
t = field['type']
- if t == 'string':
+ if field.get('default', None):
+ data += ("{name}: '{default}'\n".format(**field))
+ elif t == 'string':
data += ("{name}: ''\n".format(**field))
elif t == 'text':
data += ("{name}: |\n .\n".format(**field))