Got it solved. The ebook is initially in AZW3 format but when it got converted to add blank lines it converted to KePUB. I didn't know that I had to choose AZW3 for Output format. So I did that and the blank lines between paragraphs got added. I then converted the ebook to the format I want (KePUB).
Thanks for the reply though