From ecc7e3e9e49d58c9bc22784a96279c4d5ba814a2 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 23 Nov 2021 11:01:17 +0000 Subject: gofmt, plus update documentation of recently changed pipeline.UploadImages --- pdf.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pdf.go') diff --git a/pdf.go b/pdf.go index 6543e35..72d6428 100644 --- a/pdf.go +++ b/pdf.go @@ -87,7 +87,7 @@ func (p *Fpdf) AddPage(imgpath, hocrpath string, smaller bool) error { b := img.Bounds() - smallerImgWidth := b.Max.X*smallerImgHeight/b.Max.Y + smallerImgWidth := b.Max.X * smallerImgHeight / b.Max.Y if smaller { r := image.Rect(0, 0, smallerImgWidth, smallerImgHeight) smimg := image.NewRGBA(r) @@ -128,7 +128,7 @@ func (p *Fpdf) AddPage(imgpath, hocrpath string, smaller bool) error { // Adding a space after each word causes fewer line breaks to // be erroneously inserted when copy pasting from the PDF, for // some reason. - p.fpdf.CellFormat(cellW, lineheight, cellText + " ", "", 0, "T", false, 0, "") + p.fpdf.CellFormat(cellW, lineheight, cellText+" ", "", 0, "T", false, 0, "") } } return p.fpdf.Error() -- cgit v1.2.1-24-ge1ad