Skip to content

Commit ca658c8

Browse files
gaborbuzasiRon Petrusha
authored andcommitted
use tabs instead of spaces to avoid formatting issue (#894)
1 parent e848864 commit ca658c8

File tree

1 file changed

+10
-10
lines changed
  • snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.HtmlElement/CS

1 file changed

+10
-10
lines changed

snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.HtmlElement/CS/Form1.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -307,19 +307,19 @@ private void AddTopPageMessage(String message)
307307
{
308308
HtmlDocument doc = webBrowser1.Document;
309309

310-
// Do not insert the warning again if it already exists.
311-
HtmlElementCollection returnedElems = doc.All.GetElementsByName("ADatumWarningDiv");
312-
if ((returnedElems != null) && (returnedElems.Count > 0))
310+
// Do not insert the warning again if it already exists.
311+
HtmlElementCollection returnedElems = doc.All.GetElementsByName("ADatumWarningDiv");
312+
if ((returnedElems != null) && (returnedElems.Count > 0))
313313
{
314-
return;
314+
return;
315315
}
316316

317-
HtmlElement divElem = doc.CreateElement("DIV");
318-
divElem.Name = "ADatumWarningDiv";
319-
divElem.Style = "background-color:black;color:white;font-weight:bold;width:100%;";
320-
divElem.InnerText = message;
321-
322-
divElem = doc.Body.InsertAdjacentElement(HtmlElementInsertionOrientation.AfterBegin, divElem);
317+
HtmlElement divElem = doc.CreateElement("DIV");
318+
divElem.Name = "ADatumWarningDiv";
319+
divElem.Style = "background-color:black;color:white;font-weight:bold;width:100%;";
320+
divElem.InnerText = message;
321+
322+
divElem = doc.Body.InsertAdjacentElement(HtmlElementInsertionOrientation.AfterBegin, divElem);
323323
}
324324
}
325325
//</SNIPPET9>

0 commit comments

Comments
 (0)