Skip to content

Commit a61e573

Browse files
committed
使用 ParagraphText 代替 Text
1 parent 1d884e6 commit a61e573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firefly/Helpers/DocxHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public static T GetCellTextAs<T>(XWPFTableCell cell, Func<string, T> selector)
246246
{
247247
// 使用 cell.GetText() 则不保留换行符
248248
var texts = from p in cell.Paragraphs
249-
select p.Text;
249+
select p.ParagraphText;
250250

251251
string text = String.Join(Environment.NewLine, texts);
252252

0 commit comments

Comments
 (0)