Fix format as suggested.

This commit is contained in:
Zhiguan Hu
2019-12-11 10:05:17 -06:00
parent 6f3a30a723
commit 9baa8c3ca0

View File

@@ -103,6 +103,7 @@ namespace UglyToad.PdfPig.DocumentLayoutAnalysis
//Create new leaf with non-whitespace words.
leaf = new XYLeaf(words);
}
if (leaf.CountWords() <= 1 || leaf.BoundingBox.Width <= minimumWidth)
{
// we stop cutting if
@@ -212,7 +213,6 @@ namespace UglyToad.PdfPig.DocumentLayoutAnalysis
return leaf;
}
// determine dominantFontWidth and dominantFontHeight
decimal domFontWidth = dominantFontWidthFunc(words.SelectMany(x => x.Letters)
.Select(x => Math.Abs(x.GlyphRectangle.Width)));