We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fedb4e2 commit 2d34027Copy full SHA for 2d34027
Package/TxtPackage.cs
@@ -1,13 +1,11 @@
1
-using System;
+using System;
2
using System.Collections.Generic;
3
using System.Text;
4
using System.IO;
5
using System.Text.RegularExpressions;
6
using iTextSharp.text;
7
using iTextSharp.text.pdf;
8
9
-//http://www.cnblogs.com/CareySon/archive/2011/11/07/2239017.html
10
-
11
namespace ExportBlog
12
{
13
public class TxtPackage
@@ -121,9 +119,9 @@ private string GetContent(FeedEntity entity)
121
119
}
122
120
123
string html = entity.Content;
124
- html = reg_br.Replace(html, "\r\n");
+ html = reg_br.Replace(html, "\n");
125
html = reg_html.Replace(html, string.Empty);
126
- html = App.ToHtmlDecoded(html);
+ html = App.ToHtmlDecoded(html).Replace("\r", string.Empty).Replace("\n", "\r\n");
127
128
return html;
129
0 commit comments