diff options
author | Dave Andreoli <dave@gurumeditation.it> | 2018-03-17 12:06:34 +0100 |
---|---|---|
committer | Dave Andreoli <dave@gurumeditation.it> | 2018-03-17 12:06:34 +0100 |
commit | 97289953ec0ae253761e39e82ffb334669f5ba7c (patch) | |
tree | dfad9356db21d5a15be4b404f1c7a191bce28ffd /src/scripts | |
parent | 2cb896dfab7180e3dc802be01987943c0bd3e555 (diff) |
Pyolian: fix __repr__ for Documentation
Diffstat (limited to 'src/scripts')
-rw-r--r-- | src/scripts/pyolian/eolian.py | 5 |
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): | |||
1320 | 1320 | ||
1321 | 1321 | ||
1322 | class Documentation(Object): # OK (1 TODO Unit*) | 1322 | class Documentation(Object): # OK (1 TODO Unit*) |
1323 | # def __repr__(self): | 1323 | def __repr__(self): |
1324 | # return "<eolian.Documentation '{0.name}'>".format(self) | 1324 | t = self.summary if len(self.summary) < 40 else self.summary[:40] + '...' |
1325 | return "<eolian.Documentation summary='{}'>".format(t) | ||
1325 | 1326 | ||
1326 | # this is too much for py, just use string.split('\n\n') instead | 1327 | # this is too much for py, just use string.split('\n\n') instead |
1327 | # def string_split(self, string): | 1328 | # def string_split(self, string): |