function removeEmptyParagraphs() {
    const paragraphs = document.querySelectorAll('p');
    paragraphs.forEach(paragraph => {
        if (!paragraph.textContent.trim() && !paragraph.querySelector('i')) {
            paragraph.remove();
        }
    });
}

removeEmptyParagraphs();