spicy food and breast feeding

Hi! So I was wondering if you have spicy food and you breast feed does it burn the babies butt when they poop? For me when I had spaghetti and pineapples the acid from it made my baby's  butt on fire. I stayed away from spicy food just in case it will hurt her.