Questions tagged [whitespace]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
67 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 ...
1
vote
1answer
482 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 ...
3
votes
1answer
110 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 ...
1
vote
3answers
535 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 ...
1
vote
1answer
110 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 ...
7
votes
4answers
13k 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&...
3
votes
2answers
744 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. ...
6
votes
1answer
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....