Bug Request: Please pre-wrap all posts.
-
Continuing the discussion from Put the following steps in order. Put the following steps in order.:
Markdown always swallowed spaces, its the way it has always been since its hybrid html [ ] if you insist http://johnmacfarlane.net/babelmark2/?text=B%3D%3D%3D%3DD
I just realized that the thing that's been bothering me since forever about twitter oneboxing has a simple solution. One that would also make it easier for us to format posts the way we want: if you (@PJH) could please add
white-space: pre-wrap;
tocooked
, we could have our precious white space preserved just the way we want it.Filed Under: Discourse: All the whitespace you could ask for, none of the whitespace you need.
-
Why can't you insert whitespace as you like with the current system?
-
Why can't you insert whitespace as you like with the current system?
Reducing the amount of html that goes into post creation makes life easier for anyone who might wish to consume the raw content, such as when you ‘quote whole post’, or if you are browsing discourse via newsreader, or when you click
</>
or...
-
Raw is just for figuring out other people's formatting hacks.
Nobody "consumes the raw content"...
-
All of @accalia's bots do.
-
All of @accalia's bots do.
So... no actual people do.
Or, as I originally asserted, nobody.
Filed under: you can take your 'three laws' and shove them up your intake valve, diodebag
-
This post is deleted!
-
Look, you're answering all of the wrong questions. Don't ask “are html entities not a good feature”, rather ask “is stripping whitespace from posts a useful feature?”. I am certain that the number of times someone has added an extra space to a post because they wanted an extra space there outnumbers the number of times someone has added an redundant extra space ‘just because’, by at least an order of magnitude.
-
And if not, we can make it be so…
-
I initially thought that it makes sense to collapse whitespace because I'm so used to dealing with HTML. Given, however, that Discourse already converts line breaks to
<br>
s and that there's no real down side to respecting the entered whitespace, I think I agree with @Buddy's suggestion. If people want to be obnoxious with spacing, they can already do so using
entities.
-
Thanks. At the moment, I've got
.cooked p { white-space: pre-wrap; }
– anything greedier seems to break stuff like quote boxes. It doesn't, unfortunately, fix tweets, but the tweet template looks like this:
p
tag, so at the very least, I'll be able to make tweets show correctly for myself some time soon, hopefully.
-
Would a <div> have been better? I've seen multi-line tweets…
-
Oh, right, semantics.
Yeah, displaying multi-line tweets correctly was the entire point. To be honest, I'm a little disappointed that the discourse team didn't fix it when I originally asked them to: it seems like an easy fix, one that someone who knew anything about web design could have done in five minutes, correctly, rather than taking 6 months to come up with an incorrect solution, like I did.
I don't know, I guess I played that whole bug report thread completely wrong. Maybe they thought I was just griping for the sake of griping. Maybe they thought I knew what I was doing and could just have submitted the fix myself. All I wanted was to be able to post tweets and have them display correctly.
-