News:

Join the Facebook Fan Page.

Main Menu

newline in post

Started by MemBrick, March 01, 2013, 10:38:21 AM

Previous topic - Next topic

MemBrick

Hi!

Please help me with this problem:



I need make that newline in Post

Kindred

well, first of all, why are you worried about nonsense words like that? The system works perfectly well with regualrly typed words.

However... try reading the manual/wiki?
http://wiki.simplemachines.org/smf/Posts_and_Topics#Post_Settings
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

MrPhil

Some browsers (like IE) will expand the box to fit the contents, while others will overflow like that by default. With one long word like that (no punctuation), I don't think any browser is going to be able to split it, at least not within the rules of any given language.

Are you having this problem with real-life text? You can change the CSS of the element (textarea?) to make overflow hidden, or automatically/always generate scroll bars in the element window. There are also "word wrap" settings, but they need to have a space (usually) to split on. Sometimes you can use PHP code or Javascript code to add a zero-width space (such as &# 8203;) between punctuation and a following letter.

If that isn't SMF in question, this topic should be moved to Scripting Help.

Kindred

actually, Mr Phil, ther eis a setting on the page that I linked to to force the system to split words long than X characters.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

MrPhil

Yeah, but will it properly hyphenate, according to the rules of English? (or whatever language... you should see how complicated German is when it comes to splitting words)

Arantor

No, it will brute force them apart.

Even the word-wrap CSS rules don't necessarily properly adhere to language.
Holder of controversial views, all of which my own.


Advertisement: