Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Spaces in Parser
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #1
Spaces in Parser
I find the fact that MyBB doesn't allow multiple consecutive spaces in posts a little annoying.
Typical English says that sentences should be separated by double spaces - I typically like typing like that, however, MyBB's parser doesn't allow it.

For example, typing:

Code:
This is a sentence.  This is another sentence.

will actually produce (by default):

Code:
This is a sentence. This is another sentence.


Also, double spacing also allows other useful things, such as gaps between images etc.

This is a very simple plugin which will fix up double spaces.  Be aware that if you have any custom MyCodes, that you don't put double spaces in them! (  won't be parsed).



Attached File(s)
.php  parsespc.php (Size: 456 bytes / Downloads: 523)

My Blog
01-23-2008 07:09 PM
Find all posts by this user

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: