Skip to content

Commit 576f6f7

Browse files
author
Jeff Treuting
committed
Changed font size for word formatter to smaller to fit with normal document
1 parent aef2b4f commit 576f6f7

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

SharpDiff.Formatter/WordFormatter.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public override void Execute(Diff diff)
4141
foreach (var file in diff.Files)
4242
{
4343
var paragraph = doc.InsertParagraph(file.FileName);
44-
paragraph.Bold().FontSize(20);
44+
paragraph.Bold().FontSize(16);
4545

4646
if (file.FileChangeType == FileChangeType.Deleted)
4747
{
@@ -84,9 +84,9 @@ public override void Execute(Diff diff)
8484
row.Cells[1].Width = 2.0;
8585
row.Cells[2].Width = 96.0;
8686

87-
row.Cells[0].Paragraphs[0].Append("...").FontSize(12).Color(Color.DarkGray);
88-
row.Cells[1].Paragraphs[0].Append("...").FontSize(12).Color(Color.DarkGray);
89-
row.Cells[2].Paragraphs[0].Append(section.Description).FontSize(12).Color(Color.DarkGray);
87+
row.Cells[0].Paragraphs[0].Append("...").FontSize(11).Color(Color.DarkGray);
88+
row.Cells[1].Paragraphs[0].Append("...").FontSize(11).Color(Color.DarkGray);
89+
row.Cells[2].Paragraphs[0].Append(section.Description).FontSize(11).Color(Color.DarkGray);
9090

9191
row.Cells[0].FillColor = Color.LightGray;
9292
row.Cells[1].FillColor = Color.LightGray;
@@ -121,9 +121,9 @@ public override void Execute(Diff diff)
121121
break;
122122
}
123123

124-
row.Cells[0].Paragraphs[0].Append(line.OldLineNumber.ToString()).FontSize(12).Color(Color.DarkGray);
125-
row.Cells[1].Paragraphs[0].Append(line.NewLineNumber.ToString()).FontSize(12).Color(Color.DarkGray);
126-
row.Cells[2].Paragraphs[0].Append(firstChar + line.Text).FontSize(12).Color(fontColor);
124+
row.Cells[0].Paragraphs[0].Append(line.OldLineNumber.ToString()).FontSize(11).Color(Color.DarkGray);
125+
row.Cells[1].Paragraphs[0].Append(line.NewLineNumber.ToString()).FontSize(11).Color(Color.DarkGray);
126+
row.Cells[2].Paragraphs[0].Append(firstChar + line.Text).FontSize(11).Color(fontColor);
127127

128128
row.Cells[0].FillColor = backgroundColor;
129129
row.Cells[1].FillColor = backgroundColor;

SharpDiff/SharpDiff.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
</Reference>
3838
<Reference Include="System" />
3939
<Reference Include="System.Core" />
40+
<Reference Include="System.Numerics" />
4041
<Reference Include="System.Xml.Linq" />
4142
<Reference Include="System.Data.DataSetExtensions" />
4243
<Reference Include="Microsoft.CSharp" />

0 commit comments

Comments
 (0)