* Source template formatting

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
avatar
Peter Collier
Famous
Posts: 191
Joined: 04 Nov 2015 17:32
Family Historian: V7
Location: Worcestershire, UK

Source template formatting

Post by Peter Collier » 13 Dec 2022 00:37

I have a footnote format {Author:REVERSE} ({Year}). {Type}, <{Date}>. <Subject: {Subject}.> in a source template for private correspondence. That generates output like, for example:

Doe, John ( 2022 ). Email to John Roe, 13 December. Subject: the birth of Jane Doe.

Note the superfluous spacing around the year, even though there is no spacing between the parentheses and curly brackets in the code. Is there a way to avoid that so that the generated output is correctly closed up, i.e. (2022), not ( 2022 )?
Peter Collier

Collier, Savory, Buckerfield, Edmonds, Low, Dungey, Lester, Chambers, Walshe, Moylan, Bradley, Connors, Udale, Wilson, Benfield, Downey

User avatar
tatewise
Megastar
Posts: 27083
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Source template formatting

Post by tatewise » 13 Dec 2022 00:48

Yes, I've fallen into that scenario too.
See the Help for Source Template Formats Special-Handling for Top-Level Text towards the bottom, where it explains that most top level items are separated by a space, which can be inhibited by enclosed in angle brackets.
e.g
{Author:REVERSE} <({Year})>. {Type}, <{Date}>. <Subject: {Subject}.>
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

Post Reply