4

The pic of post is as below. As you can see, there isn't any code in my post. But Stack Overflow keeps complaining about its formatting and never gets satisified and keeps complaining without letting me to post.

Enter image description here

PS: here is the post content, if you want to try.

15
  • 4
    Why are you putting the number list in a code block?
    – Catija StaffMod
    Jan 22 '20 at 19:55
  • 2
    it wasnt in code block. But because stackoverflow was complaining, I tried to put it in code block. Still it is complaining.
    – anir
    Jan 22 '20 at 19:56
  • 9
    I guess the downvotes are because this should have been asked on meta.stackoverflow.com not meta.stackexchange.com which is for network-wide issues. Yes, it's confusing and should be clearer, and yes, the downvoters should have commented instead of unhelpful drive-by downvotes. Can we have this migrated? Jan 22 '20 at 19:58
  • 3
    There have been similar question on meta.stackechange: 1, 2. None of them helped me. So I created new one. I have no issue with moving this to meta.stackoverflow.
    – anir
    Jan 22 '20 at 20:01
  • Probably has to do with your equations.
    – Luuklag
    Jan 22 '20 at 20:13
  • 1
    Finally able to post. Dont know what fixed it. Did some random edits.
    – anir
    Jan 22 '20 at 20:17
  • 1
    In the future, I'd highly recommend using the trick here to isolate the cause of your issue before asking. (I'd vote to close this as a duplicate, but there are already enough votes to close as off-topic that my vote would be overridden.) Jan 22 '20 at 20:55
  • 3
    Also, to close voters: the code formatting filter is not only on Stack Overflow; it exists on other sites too. Questions about it are not off-topic as site-specific. Jan 22 '20 at 20:56
  • 1
    Never use code formatting if it is not code. Also, please proofread and edit your post as you have committed a number of English errors that detract from your message.
    – tchrist
    Jan 22 '20 at 21:03
  • @S, I closed it in accordance with the reason given by Anir - the bug is the overriding of my correct reason with the "one specific site" reason. Your comment says you abstained for this reason. This is a case where one would flag, I have no error to correct.
    – Rob
    Jan 23 '20 at 5:30
  • Review instructions: "Leave Closed if this question is not appropriate for the site in its current state".
    – Rob
    Jan 23 '20 at 5:32
  • @Rob The post I linked to is an FAQ; the guidelines you cite in the review system itself are simplified versions of the real guidelines that don't necessarily take all possible cases into account. As well, duplicates aren't necessarily inappropriate for the site: they serve as signposts for searchability purposes. (This has meaning in the system's operationalization too: duplicates are exempt from the Roomba criterion that deletes closed questions after 9 days, and migrated questions aren't marked "rejected" if they are closed as a duplicate.) Jan 23 '20 at 8:35
  • Also, it's not a bug - it's the intended design of the system. I've written a whole post on how the system chooses close reasons based on votes. Jan 23 '20 at 8:37
  • Finally, the fact that the author was able to post by making random changes doesn't make the question no longer reproducible: the problem can still be reproduced by attempting to post the exact same text that they originally tried to post, and the question here asks specifically why that throws the error. Jan 23 '20 at 8:39
  • 1
    Just want to tell all, originally there were no code blocks on blockquotes and it was still giving same error. To deal with it, I tried to put code block.
    – anir
    Jan 23 '20 at 13:13
4

You have 5 spaces in front of the array you are attempting to display as code.

 60,80,15,95,7,12,35,90,55

After 4, it assumes that you were trying to write a code block, but that additional space confuses it possibly.

Removing one space "should" resolve the issue:

60,80,15,95,7,12,35,90,55

But you could also instead of using spaces backtick encapsulate it ( using ``` before the code line and after) to create a code block and then code doesn't need the 4 spaces in front any longer.

60,80,15,95,7,12,35,90,55

To note:

  • Code blocks should be used for code. One reason is that code blocks are not indexed in site searches (Not applicable here, but important to know).
  • The formatting applies to all exchange sites.

This information is available to the right of the post as you are creating it and additionally the information displayed under the question body points to the additional space possibly being an issue. Displaying exactly where would be nice (The first array in your question is the one with 5 spaces FYI), but it's the hint under the body section that led me to find the extra space.

4
  • How about code being used on code-review...
    – Luuklag
    Jan 23 '20 at 8:26
  • 1
    Originally I had no code blocks only blockquotes. Still it gave the same error.
    – anir
    Jan 23 '20 at 13:11
  • @Luuklag Clarified what I meant, sorry for the confusion!
    – JFoxx64
    Jan 23 '20 at 14:47
  • @anir You have 5 spaces. The system automatically makes a code block appear when you have 4 spaces as part of the formatting rules. You may not have meant to have a code block, but what you tried to post had one in it with an extra space according to the image you've shown above.
    – JFoxx64
    Jan 23 '20 at 14:49

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