Theme debug causes carriage returns in tokens rendered in global text in views header

Created on 15 January 2017, almost 8 years ago
Updated 1 September 2024, 4 months ago

When placing a token in to a global text area as part of a link:

<a href="/node/{{ nid }}/listing">View all blog posts</a>

The rendered html contains numerous carriage returns around the output token that breaks the link and messes up the output:

<a>


2


/listing"&gt;View all blog posts</a>  

Debugging my way through I found that with theme debug enabled the token is rendering this debug:

Disabling themedebug resolves this issue, however it seems like the carriage returns should get stripped in the rendered output when debugging is enabled?

πŸ› Bug report
Status

Closed: won't fix

Version

11.0 πŸ”₯

Component
ViewsΒ  β†’

Last updated 24 minutes ago

Created by

πŸ‡¦πŸ‡ΊAustralia realityloop

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡±Netherlands Lendude Amsterdam

    This came up at a Bug smash triage session.

    We discussed this in #bugsmash and there doesn't seem to be a lot we can do here. Can we detect newlines that were added 'by accident' vs newlines that you want?

    It certainly doesn't feel like this is a Views specific issue, but as per usual it's the first place where it probably pops up.

    Since this only happens with debug enabled, our recommendation would be to close this as a "won't fix" but leaving postponed for now

  • Status changed to Closed: won't fix 4 months ago
  • πŸ‡³πŸ‡ΏNew Zealand quietone

    It has been a year and there has been no response to the last comment. I think it is now time to close this as advised in #18.

Production build 0.71.5 2024