When you call any snippet or block using a Jinje reference and the object you are referencing contains multiple lines of Jinja code, it can add extra white space to the output.
Suppose you want to ensure the object's Jinja reference does not add any extra undesired whitespace. You can use "-" when opening or closing Jinja tags inside the referenced object.
Example how it looks like in the snippet:
Adding "-" will ensure that that particular line of code does not create unnecessary whitespace, which can be undesired, for example, in the email campaign's subject line.
How to remove whitespace in Visual Builder when using Jinja reference?
When using Jinja references in our Visual Builder, removing whitespace by adding a hyphen ("-") will not be effective. This is because the Visual Builder automatically adds a "<br>" tag for any new line breaks in the HTML code generated by BeeFree. To eliminate whitespace within the visual editor, you must compress the Jinja code so there are no line breaks or spaces between individual lines. This means you should place all the code in a single line in the Block where you insert it (for example, in the Title, Paragraph, or List blocks).