Issue with posting code using [CODE] tags
I just noticed that empty lines are being eliminated which causes code to loose its readability.
As it appears to me if any "empty" line has any number of spaces or tab character then it will be deleted; if there are no additional chars then empty line remains.
Example:
Code:
'wrong:
Private Sub Command1_Click()
Dim number As Long
Dim result As Long
number = 1999
result = CLng(VBA.Left$(CStr(number), Len(CStr(number)) - 2) & "00")
Debug.Print result
End Sub
'expected:
Private Sub Command1_Click()
Dim number As Long
Dim result As Long
number = 1999
result = CLng(VBA.Left$(CStr(number), Len(CStr(number)) - 2) & "00")
Debug.Print result
End Sub
The question is when did this get broken? It was always working fine.
So, basically we loose original formatting.
Re: Issue with posting code using [CODE] tags
Can you post a screen shot of what you are seeing? The above code looks the same to me in both the wrong and expected sections. Empty lines are there.....
Thanks,
Brad!
1 Attachment(s)
Re: Issue with posting code using [CODE] tags
Strange, in Chrome it appears fine but not in IE 10:
Attachment 110717
Re: Issue with posting code using [CODE] tags
Does anyone have any clue?
Re: Issue with posting code using [CODE] tags
Interesting. Looks fine in both Firefox and IE 11 on Windows 8.1 too. Is there any visible difference in the source for the page in your two browsers?
Re: Issue with posting code using [CODE] tags
I just loaded this in Chrome 32 and the spacing looks fine. Do you have an add-in or something else that is using a style sheet that is overwriting defaults?
Re: Issue with posting code using [CODE] tags
Sorry for late respond...
Yes, Chrome is fine as well as IE9. IE10 appears to be the issue and there are no add-ins running - I don't usually allow any.