Skip to content

Commit 3fcb677

Browse files
committed
Avoid trailing blanks when writing Discus files.
Remove separating blanks for structures with empty title.
1 parent 1e328b2 commit 3fcb677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diffpy/Structure/Parsers/P_discus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def toLines(self, stru):
113113
stru_pdffit.update(stru.pdffit)
114114
# here we can start
115115
self.lines = lines = []
116-
lines.append( "title " + self.stru.title.strip() )
116+
lines.append(("title " + self.stru.title).strip())
117117
lines.append( "spcgr " + stru_pdffit["spcgr"] )
118118
if stru_pdffit.get('spdiameter', 0.0) > 0.0:
119119
line = 'shape sphere, %g' % stru_pdffit['spdiameter']

0 commit comments

Comments
 (0)