LMP: fix some minor output issues

Fix a typo and suppress trailing spaces/tabs in a few cases.