Feature Long Description applying literal newlines in html
Working on upgrading from 4.6 to 4.12 and notice a difference in how the feature long description is treating newlines in raw html. For human readability I have different divs on their owns lines, and in 4.6 the feature long description just ignores the newline. But in 4.12 it's actually adding a line between the two divs as though the newline was part of the html.
Here's a sample from my feature long description:
<div class="feature-label">Neighborhood information for</div>
<div class="address-block">{CONCAT_ADD}<.div>
<div class="address-block">Brooklyn Park, MN {ZIP}</div>
In 4.6, the feature long description is displaying like this:
Neighborhood information for
5200 85th Ave N
Brooklyn Park, MN 55443
In 4.12, it's adding extra lines like this:
Neighborhood information for
5200 85th Ave N
Brooklyn Park, MN 55443
Is it expected behavior for the feature long description to insert literal newlines between html lines?
To fix this I could convert my html to a single block of text, but that'll make it a lot harder to update when I need to make changes:
<div class="feature-label">Neighborhood information for</div><div class="address-block">{CONCAT_ADD}<br>Brooklyn Park, MN {ZIP}</div>
I could also update all of my css custom classes, but it seems weird that this would be necessary since it's standard operating procedure to write your html for human readability and have the browser ignore newlines, comment lines, etc.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
0 kommentarer