up newline
This commit is contained in:
@@ -887,9 +887,9 @@ namespace v2rayN.Forms
|
|||||||
ClearMsg();
|
ClearMsg();
|
||||||
}
|
}
|
||||||
this.txtMsgBox.AppendText(msg);
|
this.txtMsgBox.AppendText(msg);
|
||||||
if (!msg.EndsWith("\r\n"))
|
if (!msg.EndsWith(Environment.NewLine))
|
||||||
{
|
{
|
||||||
this.txtMsgBox.AppendText("\r\n");
|
this.txtMsgBox.AppendText(Environment.NewLine);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace v2rayN.Handler
|
namespace v2rayN.Handler
|
||||||
@@ -42,7 +43,7 @@ namespace v2rayN.Handler
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
string value = str.Replace("\",", "").Replace("\"", "").Replace(",", "").Replace("\r\n", "").Replace(" ", "");
|
string value = str.Replace("\",", "").Replace("\"", "").Replace(",", "").Replace(Environment.NewLine, "").Replace(" ", "");
|
||||||
lstPac.Add(value);
|
lstPac.Add(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ namespace v2rayN
|
|||||||
{
|
{
|
||||||
if (wrap)
|
if (wrap)
|
||||||
{
|
{
|
||||||
return string.Join(",\r\n", lst.ToArray());
|
return string.Join("," + Environment.NewLine, lst.ToArray());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -176,7 +176,7 @@ namespace v2rayN
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
str = str.Replace("\r\n", "");
|
str = str.Replace(Environment.NewLine, "");
|
||||||
return new List<string>(str.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries));
|
return new List<string>(str.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries));
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
@@ -214,8 +214,8 @@ namespace v2rayN
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
plainText = plainText.TrimEx()
|
plainText = plainText.TrimEx()
|
||||||
|
.Replace(Environment.NewLine, "")
|
||||||
.Replace("\n", "")
|
.Replace("\n", "")
|
||||||
.Replace("\r\n", "")
|
|
||||||
.Replace("\r", "")
|
.Replace("\r", "")
|
||||||
.Replace(" ", "");
|
.Replace(" ", "");
|
||||||
|
|
||||||
@@ -854,7 +854,7 @@ namespace v2rayN
|
|||||||
|
|
||||||
SwWrite.WriteLine(string.Format("{0}{1}[{2}]{3}", "--------------------------------", strTitle, DateTime.Now.ToString("HH:mm:ss"), "--------------------------------"));
|
SwWrite.WriteLine(string.Format("{0}{1}[{2}]{3}", "--------------------------------", strTitle, DateTime.Now.ToString("HH:mm:ss"), "--------------------------------"));
|
||||||
SwWrite.Write(strContent);
|
SwWrite.Write(strContent);
|
||||||
SwWrite.WriteLine("\r\n");
|
SwWrite.WriteLine(Environment.NewLine);
|
||||||
SwWrite.WriteLine(" ");
|
SwWrite.WriteLine(" ");
|
||||||
SwWrite.Flush();
|
SwWrite.Flush();
|
||||||
SwWrite.Close();
|
SwWrite.Close();
|
||||||
|
|||||||
Reference in New Issue
Block a user