* Blank line supression

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
User avatar
mezentia
Superstar
Posts: 277
Joined: 12 Jan 2007 21:14
Family Historian: V7
Location: Stourbridge

Blank line supression

Post by mezentia » 20 Sep 2022 17:04

I have modified a number of standard sentence templates to start a new paragraph before the sentence. By and large this works ok, but where there are successive events of the same type, e.g. census or residence, this creates lots of blank lines. Is there any way to suppress the paragraph or new line before a sentence if the previous event is the same?

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

Re: Blank line supression

Post by tatewise » 20 Sep 2022 17:21

It is almost possible but not quite.

The following function will display two alternative text strings for the first and subsequent instances of the BIRT fact.
{=TextIf( IsSameItem( %CUR_PRIN.BIRT%, %FACT% ), "first", "repeat" )}
Just substitute the BIRT tag for the fact required.

Unfortunately, the following does not work because codes like <para> are not allowed inside functions.
{=TextIf( IsSameItem( %CUR_PRIN.BIRT%, %FACT% ), <para>, "" )}
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
mezentia
Superstar
Posts: 277
Joined: 12 Jan 2007 21:14
Family Historian: V7
Location: Stourbridge

Re: Blank line supression

Post by mezentia » 20 Sep 2022 18:55

Thanks, Mike, I will look to see if that expression does what i want, but I have a feeling it won't.

Post Reply