Also fix weird indentation. Reported on the forum: https://www.mobileread.com/forums/showthread.php?p=3833021#post3833021