That maybe the case too. Actually in Islam it is made impermissible to even go to the masjid with bad breath following eating onions and garlic so yes if we feel a certain type of food makes us smell bad(and not everyone will get affected the same way all the time) then we should avoid it. Its common courtesy and of good character to avoid being offensive to others. Pity people don't get this.