-1

When entering questions or answers on the main site from my iPhone, the suggested syntax (such as code blocks initiated by 4 spaces), is not rendered properly (this particular example will just indent by 4 spaces, but not render as code; another big nuisance is that new lines are interpreted in mysterious ways).

Maybe this is because I'm running an old OS (4.3.3.; and the Safari version that came with it); I don't know. In any event, in case this is not known, I thought I should bring it to someone's attention as googling this didn't seem to bring any old such meta question up.

As an example, this came to my mind again when having trouble with this question today (see edit history).

7
  • If it's not being shown as code, your iPhone is probably inserting a non-standard space rather than a normal space (in your example, they are non-breaking spaces). But otherwise, the main site is not supported on mobile devices; only the mobile version of the site is.
    – animuson StaffMod
    Nov 5 '13 at 0:12
  • I don't see any problem with the newlines, but the space thing is weird...
    – Doorknob
    Nov 5 '13 at 0:14
  • You are probably right. I didn't even know there is a mobile version. Is it an app in the app center? Nov 5 '13 at 0:14
  • ooh, I see: view-source:http://stackoverflow.com/revisions/5fd1e74b-a1ed-47f7-9fe8-d363c658a194/view-source
    – Doorknob
    Nov 5 '13 at 0:14
  • @gnometorule Select the "mobile" link in the footer of the site. But even on mobile, if your device is inserting non-breaking spaces rather than normal spaces, you'd still experience this problem. It's your device, not the site.
    – animuson StaffMod
    Nov 5 '13 at 0:15
  • @Doorknob: The first new line is typically ignored, and the line after the new line simply continues after the one before. However, I've had worse: couldn't stop a line in this question from - kinda - centering... Nov 5 '13 at 0:16
  • @animuson: Thanks! I will give it a try (and hope it's not as unappealing as the Ubuntuforums mobile app which lacks the flair of the main site :)). Nov 5 '13 at 0:20
1

Try going to https://stackoverflow.com/revisions/5fd1e74b-a1ed-47f7-9fe8-d363c658a194/view-source and viewing the source:

I register a token destructor function with


    static void cleanup __attribute__ ((destructor));


The function just prints a debug message; the token program runs fine (main() just prints another message; token function prints upon exit).

When I look at the file with


    nm ./a.out,


I see: 


    08049f10 d __DTOR_END__

    08049f0c d __DTOR_LIST__

You used non-breaking spaces ( ) instead of normal spaces (). Don't know why... anyway, if you're not indenting with four spaces, it won't show up as code.

I don't see anything wrong with newlines though... could you elaborate?

@Doorknob: The first new line is typically ignored, and the line after the new line simply continues after the one before. However, I've had worse: couldn't stop a line in this question from - kinda - centering...

Same kind of problem (view source):

From high to low, a basic stack overflow stack layout might look like this (sf := stack frame) - all assuming no ASLR etc:


          
sf exploit_function (=: f1)



sf exploited_function (=: f2)
2
  • Thanks. So it just means I should preferably not submit from my phone as I don't think I can easily undo this. As to the newline issue, there's a comment above replying to your comment. Nov 5 '13 at 0:19
  • 1
    @gnometorule edited per the newlien issue
    – Doorknob
    Nov 5 '13 at 0:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .