Bug #2981

Mis à jour par Serge Heiden il y a plus de 4 ans

When there is no *p* structure (no paragraph) in the text/corpus and the *@insertParagraph@* parameter is activated, the The command fails with a CQP call stacktrace with the *@<p> [_.text_id="..."]@* query. %%<p> [_.text_id="..."]%% query

h3. Solution

# detect that Detect the insertParagraph parameter is set and the absence of the *p* "p" structure
#
and show a console Warning message to alert the user:
<pre>
** insertParagraph parameter is set, but there are no *p* structure (no paragraph) in the text/corpus. The insertParagraph parameter will be ignored.
</pre>
# desactivate the *@insertParagraph@* parameter
# continue processing
user

Retour