Skip to main content

Questions tagged [whitespace]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
312 views

White space added to start of template's

There is white space being added to the start of my templates. This isn't really an issue but because its happening to an RSS template that is breaking the feed and causing it to not validate. When ...
Mark's user avatar
  • 741
1 vote
1 answer
774 views

Rich Text field is producing weird space character instead of  

Example from the frontend Example in dev tools If I "view-source" on the page Example from Rich Text Field Example from Rich Text Field HTML This is a Rich Text field within a matrix, it's output ...
joe's user avatar
  • 449
3 votes
1 answer
129 views

.relatedTo() not returning tags with spaces

I think I'm seeing a bug while using advanced search with relatedTo(). If I use a simple search, like this: {% set param = { order: 'RAND()', limit: null, search: "#{request.tags}" } %} It ...
Rob's user avatar
  • 865
1 vote
3 answers
3k views

How do you prevent white space from being removed after line breaks within a Rich Text Field?

I am utilizing a CSS class within headlines for responsive line breaks. This class shows the line break for large displays and hides the break for small displays. Using the HTML/Source button within ...
Timothy Ingram's user avatar
1 vote
1 answer
117 views

Whitespace created a start of HTML

I am getting a strange whitespace character when using a different language. All languages use the same templates/database/plugins etc. But when I go to any other language except the default I get a ...
Martin's user avatar
  • 301
10 votes
4 answers
17k views

Whitespace created when using if statements

I am using the following block of code in a template: <hr class="rule"> {% if entry.features | length %} <div class="feature-block"> <h4 class="is-uppercase">Features&...
Niall Thompson's user avatar
3 votes
2 answers
854 views

Unwanted output when using Twig conditional

I am displaying a series of icons and associated labels in an unordered list. Some of the icons should only be displayed when a user is in a specific set of user groups, so I am using a conditional. ...
Alex H's user avatar
  • 955
6 votes
1 answer
2k views

How do I get rid of whitespace when rendering without touching template indentations?

I have the following code. {% spaceless %} {% for date in entry.d_date %} {% if date.showMonth == 1 %} {{ date.date.month }}- {% endif %} {% if date.showDate == 1 %} {{ date.date....
julzmon's user avatar
  • 941