HEAD backport: Modifications to make sure that problems with weight 0 print weight as 0 rather than as a blank. This addresses bug #730 (gage)
Changed paths: