title: RichTextBox_logs.AppendText(Environment.NewLine); is returning two new lines?
body: <p>I do not know why but it always enters two new lines:</p>
  <p><a href="https://i.stack.imgur.com/rmsZ4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rmsZ4.png" alt="enter image description here" /></a></p>
  <pre class="lang-cs prettyprint-override"><code>private void getMyIPAddress()
  {
      String Address = &quot;&quot;;
      this.Dispatcher.Invoke(() =&gt;
      {
          this.RichTextBox_logs.VerticalScrollBarVisibility = ScrollBarVisibility.Visible;
      });
      while (true)
      {
          this.Dispatcher.Invoke(() =&gt;
          {
              this.RichTextBox_logs.AppendText(Environment.NewLine);
              
              //this.RichTextBox_logs.ScrollToEnd();
          });
          WebRequest request = WebRequest.Create(&quot;http://checkip.dyndns.com/&quot;);
          try
          {
              using (WebResponse response = request.GetResponse())
              {
                  using (StreamReader stream = new StreamReader(response.GetResponseStream()))
                  {
                      Address = stream.ReadToEnd();
                  }
                  int first = Address.IndexOf(&quot;Address: &quot;) + 9;
                  int last = Address.IndexOf(&quot;&lt;/body&gt;&quot;);               
  
                  if (CurrentAddressHolder != Address.Substring(first, last - first))
                  {
                      CurrentAddressHolder = Address.Substring(first, last - first);
  
                      this.Dispatcher.Invoke(() =&gt;
                      {
                          this.textBox_ip.Text = CurrentAddressHolder;
                      });
                      
                  }
  
                  this.Dispatcher.Invoke(() =&gt;
                  {
                      this.RichTextBox_logs.AppendText(&quot;IP is &quot; + CurrentAddressHolder);
                  });
              }
          }
          catch(Exception e)
          {
              this.Dispatcher.Invoke(() =&gt;
              {
                  this.RichTextBox_logs.AppendText(e.ToString());
              });
          }
      }
  }
  </code></pre>
  <p>I'm new to multi-threading and I'm not sure if it affected the syntax to the new line.</p>
  <p>Any inputs or code revisions/improvements are highly welcomed. Thanks.</p>