12

I am talking specifically about this question: Two models to one viewmode with relationship.

For some weird reason, if you remove some of the space characters, the Markdown seems to ignore the indentation:

enter image description here

I took some minutes in Revision 2 to remove every single white-space character and copy-paste 4 white-space characters for proper indentation.

The moment I submitted that, the OP also submitted some edit, but I have no idea what it was since the Revisions view is completely screwed up:

enter image description here

As it can be seen in the Revisions, I attempted to rollback to my version, which made absolutely no difference.

2
  • 18
    The tab vs spaces debate has few winners on the tab side. Commented Mar 3, 2019 at 14:48
  • 2
    Might be too late to check now, but I wonder if triple backticks would have made it appear correct.
    – jpmc26
    Commented Mar 4, 2019 at 18:40

1 Answer 1

24

There is either a non-standard whitespace character in the original source, or an editor preview bug. You see it when you delete the first space on a line, not when you delete any other spaces.

Adding four spaces to the start of the line fixes the issue (regardless of other indentation). I've re-indented the post code to clear the issue.

Note that the issue has nothing to do with other edits, you can reproduce it by editing your 'fixed' revision #2 and removing the first space of an indented line.

3
  • 3
    Thanks, I just wanted to understand why the history does not show the changes. Regardless of how the preview is rendered, I did change the amount of white-space characters in my original edit. You can see in the Revisions view that your edit was correctly saved. Commented Mar 3, 2019 at 14:50
  • 6
    There's a very good chance the asker was editing the post at the same time you were, @Camilo, and those edits got rolled into the original revision. So what ends up getting shown is the difference between the last version of the question the asker submitted and your edit (which was based on an earlier version of the same question) - thus anywhere you and the asker made the same changes, there will be no difference.
    – Shog9 Mod
    Commented Mar 4, 2019 at 17:25
  • 1
    Thanks @Shog9, that makes sense. Commented Mar 4, 2019 at 17:55

You must log in to answer this question.

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