aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/pyolian
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2018-03-17 12:06:34 +0100
committerDave Andreoli <dave@gurumeditation.it>2018-03-17 12:06:34 +0100
commit97289953ec0ae253761e39e82ffb334669f5ba7c (patch)
treedfad9356db21d5a15be4b404f1c7a191bce28ffd /src/scripts/pyolian
parentPyolian doc generator: update wrt name API changes (diff)
downloadefl-97289953ec0ae253761e39e82ffb334669f5ba7c.tar.gz
Pyolian: fix __repr__ for Documentation
Diffstat (limited to 'src/scripts/pyolian')
-rw-r--r--src/scripts/pyolian/eolian.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/scripts/pyolian/eolian.py b/src/scripts/pyolian/eolian.py
index 8a395c9a09..556f47720d 100644
--- a/src/scripts/pyolian/eolian.py
+++ b/src/scripts/pyolian/eolian.py
@@ -1320,8 +1320,9 @@ class _Eolian_Doc_Token_Struct(ctypes.Structure):
class Documentation(Object): # OK (1 TODO Unit*)
- # def __repr__(self):
- # return "<eolian.Documentation '{0.name}'>".format(self)
+ def __repr__(self):
+ t = self.summary if len(self.summary) < 40 else self.summary[:40] + '...'
+ return "<eolian.Documentation summary='{}'>".format(t)
# this is too much for py, just use string.split('\n\n') instead
# def string_split(self, string):