Skip to content

Commit

Permalink
Also shorten res file text
Browse files Browse the repository at this point in the history
  • Loading branch information
dkratzert committed Sep 28, 2023
1 parent e415430 commit 58a82e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions finalcif/gui/plaintextedit.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ def setText(self, text: str, color: QColor = None, column: int = None):
"""
if color:
self.setBackground(color)
if self.cif_key == '_shelx_hkl_file' and column == Column.CIF:
self.setPlainText('\n[Placeholder for hkl file]\n')
if self.cif_key in {'_shelx_hkl_file', '_shelx_res_file'} and column == Column.CIF:
self.setPlainText(f'{text[:300]} [...]')
else:
self.setPlainText(text)

Expand Down

0 comments on commit 58a82e7

Please sign in to comment.