diff options
author | Nick White <git@njw.name> | 2021-11-23 11:01:17 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2021-11-23 11:01:17 +0000 |
commit | ecc7e3e9e49d58c9bc22784a96279c4d5ba814a2 (patch) | |
tree | 9576b315dab658cdaaa8de19f500a6a344b0c10d /pdf.go | |
parent | d4e90332b1ac2d2cd06ad2fe1c0fcdfc0b690e99 (diff) |
gofmt, plus update documentation of recently changed pipeline.UploadImages
Diffstat (limited to 'pdf.go')
-rw-r--r-- | pdf.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() |