Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

Please note this questionthis question, particularly revision onerevision one.

In the source, it appears that both strings contain four spaces in a row, but in the rendered output, when not formatted as code (as in revision 1), the gap in the strings is clearly different. Indeed, when I paste the definitions of a and b from the source into a Python interpreter, they show up as being equal (a == b returns True), but when I paste the rendered output into Python, they are unequal (one has four spaces, the other just one). When the lines are indented, so they are rendered as code, they are rendered as equal.

After the first revision, the question was edited many times, including changes to the whitespace characters in the strings, triggering many "can not reproduce" comments, so please check revision one of the questionrevision one of the question.

Here's a screenshot of when editing revision one:

enter image description hereenter image description here

Could it be that those strings contain some strange whitespaces or control characters (backspace maybe?) and thus are not rendered properly?

Please note this question, particularly revision one.

In the source, it appears that both strings contain four spaces in a row, but in the rendered output, when not formatted as code (as in revision 1), the gap in the strings is clearly different. Indeed, when I paste the definitions of a and b from the source into a Python interpreter, they show up as being equal (a == b returns True), but when I paste the rendered output into Python, they are unequal (one has four spaces, the other just one). When the lines are indented, so they are rendered as code, they are rendered as equal.

After the first revision, the question was edited many times, including changes to the whitespace characters in the strings, triggering many "can not reproduce" comments, so please check revision one of the question.

Here's a screenshot of when editing revision one:

enter image description here

Could it be that those strings contain some strange whitespaces or control characters (backspace maybe?) and thus are not rendered properly?

Please note this question, particularly revision one.

In the source, it appears that both strings contain four spaces in a row, but in the rendered output, when not formatted as code (as in revision 1), the gap in the strings is clearly different. Indeed, when I paste the definitions of a and b from the source into a Python interpreter, they show up as being equal (a == b returns True), but when I paste the rendered output into Python, they are unequal (one has four spaces, the other just one). When the lines are indented, so they are rendered as code, they are rendered as equal.

After the first revision, the question was edited many times, including changes to the whitespace characters in the strings, triggering many "can not reproduce" comments, so please check revision one of the question.

Here's a screenshot of when editing revision one:

enter image description here

Could it be that those strings contain some strange whitespaces or control characters (backspace maybe?) and thus are not rendered properly?

edited tags
Link
Oded StaffMod
  • 498.3k
  • 40
  • 279
  • 255
Source Link
tobias_k
  • 82.8k
  • 12
  • 6

Strange problem with whitespaces in code/question

Please note this question, particularly revision one.

In the source, it appears that both strings contain four spaces in a row, but in the rendered output, when not formatted as code (as in revision 1), the gap in the strings is clearly different. Indeed, when I paste the definitions of a and b from the source into a Python interpreter, they show up as being equal (a == b returns True), but when I paste the rendered output into Python, they are unequal (one has four spaces, the other just one). When the lines are indented, so they are rendered as code, they are rendered as equal.

After the first revision, the question was edited many times, including changes to the whitespace characters in the strings, triggering many "can not reproduce" comments, so please check revision one of the question.

Here's a screenshot of when editing revision one:

enter image description here

Could it be that those strings contain some strange whitespaces or control characters (backspace maybe?) and thus are not rendered properly?