check epub output type before return
fix indent error