Rather than underscores, which doesn't really convey it's purpose that clearly (in my opinion), how about using a pair of quotes instead?

Like `"    hello    "` becomes `"hello"`. I've checked that this is accepted in sphinx as well, and sphinx doesn't trim the duplicated spaces as github does either.. (there's four of them at either side of the `hello`, but it doesn't show here).