Impossible to delete blank line in generated word with template

Hello everybody,
I’m currently using m2doc for my Capella project and when I launch the generatio of the docuement with the template that I have created some lines in my tables are empty and they are not deleted.
Example :
test | test | test
| |
file | file | file
I’m currently using Acceleo in my template to retrieve the information in my Capella diagrams. But I don’t know how to delete this empty lines in the table which are useless for me. I tried the element “” but it is not working.
Example of my code :
{ m:if ports.name.contains(‘LOC’)}
and I tried this :
{ m:if ports.name.contains(‘LOC’)} which is not working too.
So I need your help to delete this empty lines in my table.
Thank you.
Regards,
Emmanuel

Hi Emmanuel,
Aren’t you confusing with gendoc?
Please refer to the M2doc website for correct syntax.
Samuel

Hi Samuel,
Firs all thank you for you answer no I’m not I’m following this documentation :
https://www.m2doc.org/ref-doc/2.0.1/index.html
but there is no information to delete empty lines in table when the doc is generated. This is why I’ m asking the question here to know how to delete this lines because there is nothing in the m2doc website.
Regards,
Emmanuel

Hi Emmanuel,
Can you put a more complete example of your code that generates
test | test | test
| |
file | file | file
Stephane

If you insert your table using asTable*() from
Sirius services, the table is an instance of the Java type MTable.
You can write a Java service that take a MTable as parameter and check for MRow without any MCell in it. If the MRaw is empty remove it from the table and return the table.