From 166db3f4d245e6e861b1b1e6d213b31834343009 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 21 Apr 2022 10:41:30 -0600 Subject: [PATCH] Et2Description: Fix extra space while preserving line breaks --- api/js/etemplate/Et2Description/Et2Description.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/api/js/etemplate/Et2Description/Et2Description.ts b/api/js/etemplate/Et2Description/Et2Description.ts index e7b34f64a8..24df0118ca 100644 --- a/api/js/etemplate/Et2Description/Et2Description.ts +++ b/api/js/etemplate/Et2Description/Et2Description.ts @@ -22,8 +22,8 @@ export class Et2Description extends Et2Widget(LitElement) implements et2_IDetach return [ ...super.styles, css` - :host { - white-space: pre-line; + * { + white-space: pre-wrap; } :host a { cursor: pointer; @@ -163,8 +163,10 @@ export class Et2Description extends Et2Widget(LitElement) implements et2_IDetach render() { - return html` - `; + // Turn off IDE reformatting, or it will add an extra line break into the template + // @formatter:off + return html``; + // @formatter:on }