* Blank line supression
Blank line supression
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?
- tatewise
- Megastar
- Posts: 27085
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Blank line supression
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>, "" )}
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
Re: Blank line supression
Thanks, Mike, I will look to see if that expression does what i want, but I have a feeling it won't.