Wappler Version : V7.4.0
Operating System : MacOS
Server Model: NodeJS
Database Type: MySQL
Hosting Type: Docker
Expected behavior
What do you think should happen?
When saving code with dynamic expressions, the code for dynamic expression shouldn't be formatted by adding a carriage return or line break in the code.
Actual behavior
What actually happens?
A line break has been automaticall added in the dynamic expression when saving the code. It is a random occurance and it seems the CSS Prettify or ESLint is adding a line break. I have added two code snippets - automatically formatted with a line break (incorrect) and correctly formatted expression.
So far, I have noticed these extra line breaks in App Connect Bindings.
Example 1: Incorrect Code with a line break between Limited and Access Plan that was automatically added
{{sc_fetch_tenant_subscription.data.subscriberAccess=='FREE'?'Current Plan':'Limited
Access Plan'}}
Result of the incorrect formatting in the UI when the dynamic expression is not correctly parsed
Correct code with no line break
{{sc_fetch_tenant_subscription.data.subscriberAccess=='FREE'?'Current Plan':'Limited Access Plan'}}
Example 2 - incorrect code formatting - line break after /
<span class="h4 mb-0 dashboard-condensed">{{'/
'+subscription_prices[0].stripe_interval}}</span>
Example 3 - line breaks before and after + signs
({{sc_fetch_tenant_subscription.data.q_fetch_tenant_subscription.stripe_cancellation_details
+ ' on ' +
sc_fetch_tenant_subscription.data.q_fetch_tenant_subscription.stripe_cancelled_dt.formatLocalDateLong(sc_tenant_localisations.data.q_tenant_localisations.language_code)}})
