Spacing and Line break

The correct use of labels to respect the spacing and paragraph structure of the document

When we tag the test, it is vitally important to maintain the desired spaces between tags, so that when replacing those tags, the text is displayed correctly. Look at the example below:

Example: {name} {surname} 

 

The same happens with line breaks: we must place the tags without losing sight of the paragraph structure that we want in our document when it renders.

There are several situations:

 


 

Multiple sections:

In a multiple section, the same text is repeated several times, with different data each time (see example), and the paragraphs are commonly separated between them with a line break.

 

Example:

On one hand, and as LESSOR, Mr. / Ms. ___________, of legal age, with domicile in ___________, holder of ___________ passport No. ___________.

On the other hand, and as LESSEE, Mr. / Ms. ___________, of legal age, domiciled in ___________, holder of ___________ passport No. ___________.

 

For this to happen we must include the corresponding line breaks within the opening and closing tags. In this way, if there is more than one tenant, the tool generates a separation between both paragraphs.

 

Example:

{#lessor}On one hand, and as LESSOR, Mr. / Ms. ___________, of legal age, with domicile in ___________, holder of ___________ passport No. ___________.¶

{#lessor}

 


 

Single option fields:

Take, for example, a sentence that begins with Mr./Ms. As we know, thanks to automation, we can make only one of both appear (see example).

In order for this variable information to appear at the beginning of the sentence in both cases, we must write all the tags one after the other and without spaces between them. This will ensure that no unwanted spaces appear.

 

Example:

{#gender_m}Mr.{/ gender_m}{#gender_f}Ms.{/gender_f}

 


 

Multiple choice fields:

An example that we can use for this case is the clauses of a contract. These may vary from one contract to another, but we need them to appear in order with the corresponding line breaks between them.

 

Example:

[...] sample text that precedes clauses.

        1. Purpose clause

Praesent suscipit hatred eu risus condimentum, id faucibus hatred cursus. Praesent mauris pain, rhoncus nec dignissim ornare, cursus ut sem. Morbi in pharetra lacus. Fusce finibus pulvinar urn et pharetra.¶

         2. Obligations clause

Praesent suscipit hatred eu risus condimentum, id faucibus hatred cursus. Praesent mauris pain, rhoncus nec dignissim ornare, cursus ut sem. Morbi in pharetra lacus. Fusce finibus pulvinar urn et pharetra.¶

         3. Duration clause

Praesent suscipit hatred eu risus condimentum, id faucibus hatred cursus. Praesent mauris pain, rhoncus nec dignissim ornare, cursus ut sem. Morbi in pharetra lacus. Fusce finibus pulvinar urn et pharetra.¶

 

For the clauses to appear in the way we see in the previous example, regardless of those that apply in each case, we must configure our document with the corresponding line breaks within the space between the opening and closing tags. That is of course if we want to make the text of the clause a condition, that will appear or not depending on the answer of the questionnaire. But for the purposes of this tutorial, we will make as if all clauses are conditional information. 

 

Example:

[...] sample text that precedes clauses.{#clause_purpose}

         1. Purpose clause

Praesent suscipit hatred eu risus condimentum, id faucibus hatred cursus. Praesent mauris pain, rhoncus nec dignissim ornare, cursus ut sem. Morbi in pharetra lacus. Fusce finibus pulvinar urn et pharetra.{/clause_purpose}{#clause_obligations}

         2. Obligations clause¶

Praesent suscipit hatred eu risus condimentum, id faucibus hatred cursus. Praesent mauris pain, rhoncus nec dignissim ornare, cursus ut sem. Morbi in pharetra lacus. Fusce finibus pulvinar urn et pharetra.{/clause_obligations}{#clause_duration}¶

         3. Duration clause¶

Praesent suscipit hatred eu risus condimentum, id faucibus hatred cursus. Praesent mauris pain, rhoncus nec dignissim ornare, cursus ut sem. Morbi in pharetra lacus. Fusce finibus pulvinar urn et pharetra.{/clause_duration}

 

As we can see in the previous example, between each pair of opening and closing tags, a line break is incorporated before each paragraph, which will allow maintaining that necessary separation between one paragraph and the next.

We will also want the numbering to adapt automatically, but we can see that in this article on Numbering of clauses and lists ⇢