Skip to content

Commit

Permalink
Unset connectivity for bracket groups when we know the repeat unit is…
Browse files Browse the repository at this point in the history
… symmetric. When the repeat is one atom, this condition is met.
  • Loading branch information
johnmay committed Feb 7, 2016
1 parent 9f12f5d commit 7dd3a82
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -330,6 +330,11 @@ else if ("ALT".equals(subtype))
break;
}

// connectivity doesn't matter if symmetric... which is hard to test
// here but we can certainly ignore it for single atoms (e.g. methylene)
if (sgroup.getAtoms().size() == 1)
connectivity = null;

return generateSgroupBrackets(sgroup, brackets,
subscript,
connectivity);
Expand Down

0 comments on commit 7dd3a82

Please sign in to comment.