# Can't find the error in my template...

**URL:** <https://community.endnote.com/t/cant-find-the-error-in-my-template/313059>\
**Category:** EndNote How To\
**Created:** [December 19, 2018, 2:35pm UTC](https://community.endnote.com/t/cant-find-the-error-in-my-template/313059 "2018-12-19T14:35:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![randomscholar](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@randomscholar](https://community.endnote.com/u/randomscholar)\
**Post date:** [December 19, 2018, 2:35pm UTC](https://community.endnote.com/t/cant-find-the-error-in-my-template/313059/1 "2018-12-19T14:35:49Z")

</div>

Hi all,

I’ve written my own Output Style for Endnote, although I must admit I’m a bit inexperienced and a lot of it was trial and error.&nbsp;

The template I have for Book Section is:

Author (Year) Title in |Editor&nbsp;(&nbsp;ed.^eds.&nbsp;)| (Year) Book Title| (Edition)| (pp.&nbsp;Pages)|. Place Published:| Publisher

Unfortunately, when the Edition field is blank and the Pages field is complete, I get an ugly double spacing between Book Title and Pages.&nbsp; I just can’t figure out why…

Any ideas?

Thanks

---

<div class="post-metadata">

**Author:** ![randomscholar](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@randomscholar](https://community.endnote.com/u/randomscholar)\
**Post date:** [December 19, 2018, 4:24pm UTC](https://community.endnote.com/t/cant-find-the-error-in-my-template/313059/3 "2018-12-19T16:24:12Z")

</div>

Sorry, I realise now that pasting it lost some of the formatting.&nbsp; But thank you, Leanne.&nbsp; I really appreciate you taking the time to do that.&nbsp; With a few tweaks it’s working as I want now. 🙂
