diff options
| -rw-r--r-- | fpdf.go | 2 | ||||
| -rw-r--r-- | fpdf_test.go | 17 | ||||
| -rw-r--r-- | go.mod | 7 | ||||
| -rw-r--r-- | internal/example/example.go | 3 | ||||
| -rw-r--r-- | ttfparser_test.go | 5 | 
5 files changed, 17 insertions, 17 deletions
| @@ -2472,7 +2472,7 @@ func reverseText(text string) string {  }  // Cell is a simpler version of CellFormat with no fill, border, links or -// special alignment. +// special alignment. The Cell_strikeout() example demonstrates this method.  func (f *Fpdf) Cell(w, h float64, txtStr string) {  	f.CellFormat(w, h, txtStr, "", 0, "L", false, 0, "")  } diff --git a/fpdf_test.go b/fpdf_test.go index 267bc6c..5035bd8 100644 --- a/fpdf_test.go +++ b/fpdf_test.go @@ -20,9 +20,6 @@ import (  	"bufio"  	"bytes"  	"fmt" -	"gofpdf" -	"gofpdf/internal/example" -	"gofpdf/internal/files"  	"io"  	"io/ioutil"  	"math" @@ -34,6 +31,10 @@ import (  	"strings"  	"testing"  	"time" + +	"github.com/jung-kurt/gofpdf" +	"github.com/jung-kurt/gofpdf/internal/example" +	"github.com/jung-kurt/gofpdf/internal/files"  )  func init() { @@ -2711,8 +2712,8 @@ func ExampleFpdf_SetUnderlineThickness() {  	// Successfully generated pdf/Fpdf_UnderlineThickness.pdf  } -// ExampleFpdf_strikeout demonstrates striked-out text -func ExampleFpdf_strikeout() { +// ExampleFpdf_Cell_strikeout demonstrates striked-out text +func ExampleFpdf_Cell_strikeout() {  	pdf := gofpdf.New("P", "mm", "A4", "") // 210mm x 297mm  	pdf.AddPage() @@ -2720,12 +2721,12 @@ func ExampleFpdf_strikeout() {  	for fontSize := 4; fontSize < 40; fontSize += 10 {  		pdf.SetFont("Arial", "S", float64(fontSize))  		pdf.SetXY(0, float64(fontSize)) -		pdf.Cell(40, 10, "Hello World\n") +		pdf.Cell(40, 10, "Hello World")  	} -	fileStr := example.Filename("Fpdf_strikeout") +	fileStr := example.Filename("Fpdf_Cell_strikeout")  	err := pdf.OutputFileAndClose(fileStr)  	example.Summary(err, fileStr)  	// Output: -	// Successfully generated pdf/Fpdf_strikeout.pdf +	// Successfully generated pdf/Fpdf_Cell_strikeout.pdf  } @@ -4,13 +4,10 @@ go 1.12  require (  	github.com/boombuler/barcode v1.0.0 -	github.com/davecgh/go-spew v1.1.1 // indirect -	github.com/kr/pretty v0.1.0 // indirect  	github.com/phpdave11/gofpdi v1.0.7  	github.com/ruudk/golang-pdf417 v0.0.0-20181029194003-1af4ab5afa58 -	github.com/stretchr/testify v1.4.0 // indirect +	gofpdf v0.0.0-00010101000000-000000000000  	golang.org/x/image v0.0.0-20190902063713-cb417be4ba39 -	gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect  ) -replace github.com/jung-kurt/gopdf => ./ +replace gofpdf => ./ diff --git a/internal/example/example.go b/internal/example/example.go index 3365931..05e4827 100644 --- a/internal/example/example.go +++ b/internal/example/example.go @@ -19,11 +19,12 @@ package example  import (  	"fmt" -	"gofpdf"  	"os"  	"path/filepath"  	"strings"  	"time" + +	"github.com/jung-kurt/gofpdf"  )  var gofpdfDir string diff --git a/ttfparser_test.go b/ttfparser_test.go index b157d98..3286db2 100644 --- a/ttfparser_test.go +++ b/ttfparser_test.go @@ -19,8 +19,9 @@ package gofpdf_test  import (  	"bytes"  	"fmt" -	"gofpdf" -	"gofpdf/internal/example" + +	"github.com/jung-kurt/gofpdf" +	"github.com/jung-kurt/gofpdf/internal/example"  )  func ExampleTtfParse() { | 
