Bug #2981
Mis à jour par Matthieu Decorde 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 command fails with a CQP call stacktrace with the *@<p> [_.text_id="..."]@* query.
h3. Solution
# detect that the insertParagraph parameter is set and the absence of the *p* structure
# show a console Warning message to alert the user:
<pre>
** insertParagraph parameter is set, but there are no *p* structure (no paragraph) in the {0} CQP corpus. text/corpus. The insertParagraph parameter will be ignored.</pre> ignored.
</pre>
# desactivate the *@insertParagraph@* parameter
# continue processing
h3. Solution
# detect that the insertParagraph parameter is set and the absence of the *p* structure
# show a console Warning message to alert the user:
<pre>
** insertParagraph parameter is set, but there are no *p* structure (no paragraph) in the {0} CQP corpus. text/corpus. The insertParagraph parameter will be ignored.</pre> ignored.
</pre>
# desactivate the *@insertParagraph@* parameter
# continue processing