hum.. good point. What about:
If all 3 shots are defined, don't show melee option even if it is there. The weapon is obviously a gun and the modder can add melee info if they want.
If not all 3 shots are defined, you have space, melee info is shown.
That would allow better presentation of the melee info for all purely melee weapons, and most of the hybrid weapons.
Or if not that, then maybe only for weapons that don't have any shot? Currently, only the power of the weapon is shown, and everything else has to be put in the description. Having one line for the stats of melee weapon would improve things to some extent, and make the ufopaedia more uniform.