From 97289953ec0ae253761e39e82ffb334669f5ba7c Mon Sep 17 00:00:00 2001 From: Dave Andreoli Date: Sat, 17 Mar 2018 12:06:34 +0100 Subject: Pyolian: fix __repr__ for Documentation --- src/scripts/pyolian/eolian.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/scripts') 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 "".format(self) + def __repr__(self): + t = self.summary if len(self.summary) < 40 else self.summary[:40] + '...' + return "".format(t) # this is too much for py, just use string.split('\n\n') instead # def string_split(self, string): -- cgit v1.2.1