Skip to content
English
  • There are no suggestions because the search field is empty.

Why Spintr Content May Show Extra Whitespace or Blank Gaps

When displaying content from Spintr in our widgets, you may occasionally notice unexpected whitespace, extra blank lines, or large gaps between elements. This article explains why this happens.

How We Handle Spintr Data

We do not modify any data received from Spintr.

Spintr pre-formats all data before it is sent out from their API. We receive that pre-formatted data and make it available to the widget as-is. The widget then renders the content, removing all HTML tags except for the following:

  • <b> — bold
  • <i> — italic
  • <br> — line break
  • <p> — paragraph
  • <ul> / <ol> / <li> — lists
  • <a> — links

No other processing or modification is applied to the data.

Why Gaps and Extra Whitespace Appear

In some cases, the content received from Spintr contains a high volume of:

  • \n (newline characters)
  • &nbsp; (non-breaking spaces)
  • Empty <p> or <br> elements stacked on top of each other

Each of these causes a line break or margin in the rendered output. When several are placed consecutively, they stack — resulting in what appears as a large white gap in the widget.

This originates from how the content was authored and structured inside Spintr, before it is sent to our API.

Our Responsibility

Unfortunately, we are unable to take responsibility for ensuring that all content from Spintr will always render perfectly in our widgets.

The root cause is that certain Spintr content contains too many elements that trigger newlines or margins — on top of the formatting that Spintr itself applies before the data leaves their API. This is a content authoring issue within Spintr, not a bug in our widget.

Recommended Action

If you are experiencing significant whitespace issues, we recommend:

  1. Reviewing the source content in Spintr's editor.
  2. Removing unnecessary blank lines, extra <br> tags, and empty paragraphs.
  3. Avoiding stacking multiple newline-generating elements directly on top of each other.

If the issue persists after cleaning up the source content, please contact our support team.