Skip to content

Commit

Permalink
修复html中文本类型丢失换行符的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
silentmoooon committed May 16, 2019
1 parent 279ee0c commit 4b315fd
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions ClipOne/service/ClipService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ public ClipModel HandClip()
//处理剪切板文字
else if (Clipboard.ContainsText())
{

HandText(clip);
HandleText(clip);

}

Expand All @@ -240,7 +240,7 @@ public ClipModel HandClip()
/// 处理剪切板文字类型
/// </summary>
/// <param name="clip"></param>
public void HandText(ClipModel clip)
public void HandleText(ClipModel clip)
{

string textStr = string.Empty;
Expand Down Expand Up @@ -383,10 +383,8 @@ public void HandleHtml(ClipModel clip)
}
else
{

clip.DisplayValue = plainText;
clip.ClipValue = plainText;
clip.Type = TEXT_TYPE;
HandleText(clip);

}


Expand Down

0 comments on commit 4b315fd

Please sign in to comment.