Skip to content

Commit 59957a1

Browse files
committed
Useful suggestion from @adalke, write the title here many tools do this and even the CDK reader expects it.
1 parent da62dae commit 59957a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/io/src/main/java/org/openscience/cdk/io/XYZWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public void writeMolecule(IAtomContainer mol) throws IOException {
148148
writer.write(s1, 0, s1.length());
149149
writer.write('\n');
150150

151-
String s2 = null; // FIXME: add some interesting comment
151+
String s2 = mol.getTitle();
152152
if (s2 != null) {
153153
writer.write(s2, 0, s2.length());
154154
}

0 commit comments

Comments
 (0)