Skip to content

Commit

Permalink
Merge pull request #275 from ChemCryst/fix-text-summary-crash
Browse files Browse the repository at this point in the history
Prevent overlong colour descriptions overflowing in summary text file
  • Loading branch information
richardicooper authored Jun 26, 2023
2 parents 1671017 + 6bb455f commit 8087c68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crystals/results.F
Original file line number Diff line number Diff line change
Expand Up @@ -5822,7 +5822,7 @@ subroutine snum(coor,esd,nd,np,j,ivet)
1 CTEMP(4:MAX(4,J-1)),''''
CALL XPCIF (CLINE)
ELSE IF ( IPUNCH .EQ. 1 ) THEN
WRITE (CPAGE(12,1)(:),'(A,1X,A)') 'Colour',CTEMP(1:J)
WRITE (CPAGE(12,1)(:),'(A,1X,A)') 'Colour',CTEMP(1:MIN(J,27))
ELSE IF ( IPUNCH .EQ. 2 ) THEN
WRITE (NCPU,'(''<TR><TD>Colour</TD><TD>'',A,''</TD>'')')
1 CTEMP(1:J)
Expand Down

0 comments on commit 8087c68

Please sign in to comment.