Browse Source

trim() for safety in filter declaration

Sebastian Bittrich 5 years ago
parent
commit
438de5760d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/mol-io/writer/cif/encoder.ts

+ 1 - 0
src/mol-io/writer/cif/encoder.ts

@@ -139,6 +139,7 @@ export namespace Category {
         const field_blacklist: string[] = [];
 
         for (let d of directives.split(/[\r\n]+/)) {
+            d = d.trim();
             // allow for empty lines in config
             if (d.length === 0) continue;
             // let ! denote blacklisted entries