Use canonical form to render the weight logs

Also, fix a problem with duplicate weight log entries