Page 1 of 1

Blank line supression

Posted: 20 Sep 2022 17:04
by mezentia
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?

Re: Blank line supression

Posted: 20 Sep 2022 17:21
by tatewise
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>, "" )}

Re: Blank line supression

Posted: 20 Sep 2022 18:55
by mezentia
Thanks, Mike, I will look to see if that expression does what i want, but I have a feeling it won't.