diff --git a/src/main/java/gov/nih/ncats/molvec/Main.java b/src/main/java/gov/nih/ncats/molvec/Main.java index 8c30906b..9b8ebb29 100644 --- a/src/main/java/gov/nih/ncats/molvec/Main.java +++ b/src/main/java/gov/nih/ncats/molvec/Main.java @@ -315,7 +315,7 @@ public static void main(String[] args) throws Exception{ mol -> { File out = new File(effectivelyFinalOutputDir, f.getName() + ".mol"); try (PrintWriter writer = new PrintWriter(out)) { - writer.println(mol); + writer.println(mol.getMolfile().get()); } } ));