#37361·elementor

Pro Custom CSS tab: multi-line CSS is saved with literal rn in place of line breaks

Author: benyten9Created Sep 21, 2026Updated Sep 21, 2026
Labelsstatus/awaiting_triageproduct/editor-v4

Description

Pasting multi-line CSS into a widget's Custom CSS tab (Pro) is stored as .Gmb-Map {rn position: relative;rn overflow: hidden;rn ...} (the backslash of each line break is lost). The compiled post CSS contains the same rn, so none of the rules apply. Writing the same CSS on one line works. I confirmed this in the stored value in the document data and in the generated post-*.css.

Steps to reproduce

Add a Custom HTML widget in a Theme Builder footer. In its Advanced → Custom CSS tab, paste a rule that spans several lines (a selector, then properties on separate lines). Click Update and open the page's compiled CSS.

Expected behavior

The line breaks are kept, or normalised to spaces, and the CSS applies.

Elementor System Info

txt
== Server Environment ==
Operating System: Linux
Software: LiteSpeed
MySQL version: MariaDB Server v11.8.9-MariaDB-log
PHP Version: 8.3.33
PHP Memory Limit: 2048M
PHP Max Input Vars: 5000
PHP Max Post Size: 2048M
GD Installed: Yes
ZIP Installed: Yes
Write Permissions: All right
Elementor Library: Connected

== WordPress Environment ==
Version: 7.1.1
WP Multisite: No
Max Upload Size: 2 GB
Memory limit: 40M
Max Memory limit: 2048M
Permalink Structure: /%postname%/
Language: en_US
Debug Mode: Inactive

== Theme ==
Name: Hello Elementor
Version: 3.5.1
Child Theme: No

== User ==
Role: administrator

== Active Plugins ==
Classic Editor 1.7.0
Elementor 4.3.0-beta3
Elementor Pro 4.3.0-beta3
LiteSpeed Cache 7.9.1
SEOPress 10.2
Widgets for Google Reviews (Trustindex) 14.1.1

== Must-Use Plugins ==
Hostinger Preview Domain 1.4.0
Hostinger Smart Auto Updates 1.0.8

== Elementor - Compatibility Tag ==
elementor-pro: compatible

Agreement

  • I confirm I have read and followed all the guidelines and instructions outlined in the Editor V4 Bug Report form.
  • I agree that my issue may be closed without further action if it doesn't meet all the requirements outlined in the Editor V4 Bug Report form.