Table with total width < 100 %


I want a table that should not spread across the entire page.

My code:

{% stripnewlines %}
{% newline %}

However, the table doesn’t get the width that I give it, but it is wider. What am I doing wrong?

Hi @cbunger,

I’m assuming that one of the rows contains a lot of text, which will lead to the column adapting in size until it is spread out all over the page. A workaround for this issue is to add an extra third column in the table header and foresee a &nbsp in the rows as such:

{% stripnewlines %}
{% newline %}
|First column
|Second column
| &nbsp;
{% newline %}
{% endstripnewlines %}

Hope this helps!

Kind regards,

Thanks! Worked when I added “+” to the “|--------” for my third column.