Answered by:
Editing Postings Including Sourcecode ends up in corrupted Sourcecode

Question
-
Hi,
when I edit my own postings that include sourcecode the sourcecode is corrupted afterwards. Corrupted in this case means there is a new line after (line break) after each statement in my sourcecode. This happens even if I do not change anything in the sourcecode block of my posting. You just have to correct a typo somewhere else and sourcecode block is corrupted afterwards.
In my opinion this is a bug that should be fixed!
I don't know if this might have anything to with, but I am working with Firefox. But honestly, I can't imagine that my browser has anything to do with this...
- Moved by Kay GizaMicrosoft employee Tuesday, October 19, 2010 10:29 AM Moved from German MSDN Forum (From:Generelle Fragen zu MSDN Online Deutschland oder den MSDN Foren)
Answers
-
- Proposed as answer by Ed Price - MSFTMicrosoft employee Friday, April 20, 2012 7:58 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Friday, April 20, 2012 7:58 PM
All replies
-
-
The question for me is, is it something that is due to Firefox or would there be the same problem with IE or other browsers?
In my opinion there is a Bug in this Forum that should be solved as Browsers only interpret HTML and display it in the way the source is formed in HTML. Therefore, if there is malformed HTML Browsers will display it malformed. I don't think that this forum delivers the right HTML and that these linebreaks are delivered by the server of this forum.
-
-
outch, now, I get the whole website in WYSIWYG-design in the edit-box:
<form id="aspnetForm" action="edit" enctype="application/x-www-form-urlencoded" method="post"></form>
<input id="__VIEWSTATE" name="__VIEWSTATE" type="hidden" value="/wEPDwULLTEzNzk0MzkwMDlkZD6SorGRLWx4w+alHb7GRMyulXR+" /><script type="text/javascript"></script>
Australia (English)Brasil (Português)Česká republika (Čeština)Danmark (Dansk)Deutschland (Deutsch)España (Español)France (Français)Indonesia (Bahasa)Italia (Italiano)Magyarország (Magyar)Nederland (Nederlands)Polska (Polski)Türkiye (Türkçe)Россия (Русский)ישראל (עברית)المملكة العربية السعودية (العربية)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)香港特別行政區 (中文)<input id="MastHeadSearchTextBox" class="TextBoxSearchActive" title="Search Web" onkeydown=" if (event.keyCode == 13) { doWebSearch(); return false; } " type="text" /> <input id="MastSearchButton" class="SearchButton" title="Search Web" onclick=" doWebSearch(); " type="button" value=" " />Microsoft > Forums Home > Using Forums Forums > Forums Issues (not product support) > Editing Postings Including Sourcecode ends up in corrupted Sourcecode > c473dab6-fb07-4a84-a015-64b07ae81692<form action="/Forums/en-US/reportabug/thread/8b32d152-1881-42cb-810f-ee9abc6d696c/c473dab6-fb07-4a84-a015-64b07ae81692/edit" enctype="application/x-www-form-urlencoded" method="post">Edit Message
<textarea cols="100" rows="20" name="body">ok, let's try: <div style="color:Black; background-color:White"> <pre><span style="color:Blue">int</span> test = 1; <span style="color:Blue">int</span> test2 = 2; </pre> </div> writen in firefox. Now edit with IE (64 bit)</textarea>
<label for="hasCode">Resource.HasCodeLabel</label><input checked="checked" name="hasCode" type="checkbox" value="true" /> <label for="reason">Reason</label><input name="reason" type="text" /><input title="Submit" type="submit" value="Submit" />© 2010 Microsoft Corporation. All rights reserved.||| -
That's familiar to me! I also have this once in a while! Then refreshing the page helps, but for me this also means that the bug is not on client side, they have to correct it on the server side.
Is there anybody from the development team of this forum that can help to explain this?
-
- Proposed as answer by Ed Price - MSFTMicrosoft employee Friday, April 20, 2012 7:58 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Friday, April 20, 2012 7:58 PM