I've been trying to build a disussion website, using the Telescope engine. Installing on Heroku with a MongoHQ plugin is a piece of cake, but I've found problem that I can't replicate on my machine (the problem only exists in Heroku's instance).
Say, I want to write some code in Markdown for comment, so I added four spaces before a line, like this:
// some piece of code
And the string, straight from mongodb comes out as this:
// some piece of code
which is weird because it's saved as
// some piece of code
(with the four spaces) in database. I'm not sure if this is Heroku's server doing or some setup in MongoHQ (and I can't find any setting in both). Is this some sort of limitation from Heroku's free instance? Or is it some setting in mongo?
What should I do to fix this?
Thanks before.
Sounds like to me that whatever is reading in the document from mongodb is automatically converting 2 spaces into "nbsp; " which makes sense because you can't just chain together a billion spaces in a row, you have to alternate "nbsp; " + space or just use a bunch of chained "nbsp; " characters.
I would search any third party libs that you're using for "nbsp; " exactly and see what you find. That will have to lead to an answer.
Note: You'll need to add in an & before each nbsp; char, SO converts them to a space otherwise and if you escape it, then it ignores the trailing space.