Jump to content

Mystery spaces from empty textarea fields appearing


BFD Calendar
 Share

Recommended Posts

All of a sudden I see spaces appearing in text output where they shouldn't be and weren't before. Check this example: https://www.birthfactdeathcalendar.net/events/dates/april/23-april/

In the item about Æthelred the Unready there are about three spaces before the item text, and an empty paragraph after it. It's an item I added today. The next items were added months ago and look normal, until the one about William Wordsworth, same thing again. The item about the Rhythm Club dance hall fire was added months ago but edited today, same appearance of empty spaces.

I suspect empty textarea fields in the templates to be the culprit. But how come they show up with newly added pages and not with older ones, while nothing has changed to the templates nor the php code to generate the pages? 

Nothing has changed to my settings, and it didn't happen three weeks ago, when for example the item about Pope Julius III was added among others on https://www.birthfactdeathcalendar.net/events/dates/march/23-march/.

Link to comment
Share on other sites

The "spaces" are actually \n\n newline characters which get displayed as spaces.

textContent: " \n\n  King of the English"
textContent: " \n\n \n\n \n\n \n\n  Notorious cannibal"

Are you using a new editor, copy/paste method, browser or type of machine in the past 3 weeks? 

Link to comment
Share on other sites

No new editor, browser, keyboard, computer or whatever. But apparently a Safari (Mac version) update is to blame. On https://www.birthfactdeathcalendar.net/events/dates/april/24-april/ the item about Willem de Zwijger was added in Safari, the one about Daniel Defoe was added in Chrome, no spaces there. Safari 12.1 was installed on 29 March.

In the admin interface the newline characters appear (invisible) in the textarea space in Safari 12.1. The source of an empty text area in Safari looks like this:

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<div data-extension-version="1.0.4" id="ConnectiveDocSignExtentionInstalled">&nbsp;</div>

<div data-extension-version="1.0.4" id="ConnectiveDocSignExtentionInstalled">&nbsp;</div>

while in Chrome it's empty.

Edit: with the ConnectiveDocSignExtension off it still says:

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...