Menu

#771 HTML formula improvements

Accepted
closed
formula (1)
master
1
2014-07-25
2014-06-20
John May
No

Small patch converts the MolFormManip to use StringBuilder and only output subscript when > 1. The the toString() already did this but the HTML for methane would be 'C1H4' it is now 'CH4'.

Last two commits: https://github.com/johnmay/cdk/commits/fix/html-formula

Discussion

  • Egon Willighagen

    • assigned_to: Miquel Rojas Cherto
     
  • Egon Willighagen

    • status: open --> closed
    • Group: Needs_Review --> Accepted
     
  • Egon Willighagen

    Miguel, please let me know if this was not OK.

     
  • Miquel Rojas Cherto

    It is perfect. I think it is much more clear for the user presenting CH4 instead of C1H4.

     

Log in to post a comment.

MongoDB Logo MongoDB