Elminiate excessive line breaks in <link> output

Created on 6 July 2023, 12 months ago
Updated 13 May 2024, about 1 month ago

Problem/Motivation

The output code breaks coding standards as it adds multiple line breaks to output, that should be within a single line.


<link rel="preload" href="/themes/custom/THEME/fonts/roboto-condensed/webfonts/roboto-condensed-v25-latin-300.woff2
" as="font" type="font/woff2
" crossorigin="">
<link rel="preload" href="/themes/custom/THEME/fonts/roboto-condensed/webfonts/roboto-condensed-v25-latin-300.ttf
" as="font" type="font/ttf
" crossorigin="">
<link rel="preload" href="/themes/custom/THEME/fonts/roboto-condensed/webfonts/roboto-condensed-v25-latin-300italic.woff2
" as="font" type="font/woff2
" crossorigin="">
<link rel="preload" href="/themes/custom/THEME/fonts/roboto-condensed/webfonts/roboto-condensed-v25-latin-300italic.ttf
" as="font" type="font/ttf
" crossorigin="">
<link rel="preload" href="/themes/custom/THEME/fonts/roboto-condensed/webfonts/roboto-condensed-v25-latin-regular.woff2
" as="font" type="font/woff2
" crossorigin="">
<link rel="preload" href="/themes/custom/THEME/fonts/roboto-condensed/webfonts/roboto-condensed-v25-latin-regular.ttf
" as="font" type="font/ttf
" crossorigin="">
<link rel="preload" href="/themes/custom/THEME/fonts/roboto-condensed/webfonts/roboto-condensed-v25-latin-700.woff2
" as="font" type="font/woff2
" crossorigin="">
<link rel="preload" href="/themes/custom/THEME/fonts/roboto-condensed/webfonts/roboto-condensed-v25-latin-700.ttf
" as="font" type="font/ttf
" crossorigin="">
<link rel="preload" href="/themes/custom/THEME/fonts/open-sans/webfonts/open-sans-v35-latin-300.woff2
" as="font" type="font/woff2
" crossorigin="">
<link rel="preload" href="/themes/custom/THEME/fonts/open-sans/webfonts/open-sans-v35-latin-300.ttf
" as="font" type="font/ttf
" crossorigin="">
<link rel="preload" href="/themes/custom/THEME/fonts/open-sans/webfonts/open-sans-v35-latin-300italic.woff2
" as="font" type="font/woff2
" crossorigin="">
<link rel="preload" href="/themes/custom/THEME/fonts/open-sans/webfonts/open-sans-v35-latin-300italic.ttf
" as="font" type="font/ttf
" crossorigin="">
<link rel="preload" href="/themes/custom/THEME/fonts/open-sans/webfonts/open-sans-v35-latin-regular.woff2
" as="font" type="font/woff2
" crossorigin="">
<link rel="preload" href="/themes/custom/THEME/fonts/open-sans/webfonts/open-sans-v35-latin-regular.ttf
" as="font" type="font/ttf
" crossorigin="">
<link rel="preload" href="/themes/custom/THEME/fonts/open-sans/webfonts/open-sans-v35-latin-700.woff2
" as="font" type="font/woff2
" crossorigin="">
<link rel="preload" href="/themes/custom/THEME/fonts/open-sans/webfonts/open-sans-v35-latin-700.ttf" as="font" type="font/ttf" crossorigin="">

Steps to reproduce

NOTE: if you "view source", it'll look properly formatted, however, it's not... Inspect the code in devtools and you'll see the line breaks. Also if you copy/paste the "view source" output, into a text file, you'll see the line breaks.

Proposed resolution

Only have a SINGLE line break after each <link> .

🐛 Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇺🇸United States duntuk

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

Comments & Activities

Production build 0.69.0 2024