We have our winners! Thank you for reading and voting [ Dismiss ]
Home » Forum » Bug Report and Feature Requests

Forum: Bug Report and Feature Requests

Question about story formatting

Quasirandom 🚫

Do the story processing scripts strip out non-breaking spaces (& nbsp;)? What about other HTML character entities?

Lazeez Jiddan (Webmaster)

@Quasirandom

Do the story processing scripts strip out non-breaking spaces (& nbsp;)?

nbsp is converted to a regular space, multiple consecutive spaces are pruned down to one.

What about other HTML character entities?

They're decoded and processed as normal text.

Replies:   Quasirandom
Quasirandom 🚫

@Lazeez Jiddan (Webmaster)

Gotcha.

So if, say, I had a pretentious teenage poet using extra spaces as punctuation, I might want to change his quirk to some other non-punctuation character. Say, & middot; or something. Hmm.

Replies:   Keet
Keet 🚫
Updated:

@Quasirandom

So if, say, I had a pretentious teenage poet using extra spaces as punctuation, I might want to change his quirk to some other non-punctuation character. Say, & middot; or something. Hmm.

If Lazeez converts the nbsp to a regular space he wouldn't have to prune it down to a single space (other than to make the files/text cleaner and smaller). The browser engine will only display a single space if it encounters multiple spaces in a row. That's why you can't use multiple spaces to simulate a tab. Using the nbsp should be avoided as much as possible because it interferes with the optimal flow of the content as rendered by the browser. As you already figured out: use a different character/symbol.

ETA: I should make that a little clearer. nbsp stands for non-breaking-space. It's purpose is to have a space that is NOT used by the rendering engine to break a sentence to the next line. Good usage is for example between a first and a last name to avoid having the name split to the next line if it happens to be at the end of a line. In that case both the first and last name would be kept together and start on the next line. That's why it's called 'non-breaking' :)

Back to Top

Close
 

WARNING! ADULT CONTENT...

Storiesonline is for adult entertainment only. By accessing this site you declare that you are of legal age and that you agree with our Terms of Service and Privacy Policy.


Log In