summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-08-05 22:20:13 +0700
committerShulhan <ms@kilabit.info>2022-08-05 22:20:13 +0700
commit6df915293cd00fe6e8c8771399745a4532774710 (patch)
tree1451719256e34dc59edc33dccb943e39ebe786d2
parent58bd7778b3851a5d39b460140a410d963152882e (diff)
downloadasciidoctor-go-6df915293cd00fe6e8c8771399745a4532774710.tar.xz
go.mod: update share to v0.40.0
This update fix some issues related to new line on test.Data.
-rw-r--r--asciidoctor_test.go4
-rw-r--r--go.mod2
-rw-r--r--go.sum4
-rw-r--r--testdata/test.got.html4
4 files changed, 5 insertions, 9 deletions
diff --git a/asciidoctor_test.go b/asciidoctor_test.go
index 9f88097..168607b 100644
--- a/asciidoctor_test.go
+++ b/asciidoctor_test.go
@@ -70,10 +70,6 @@ func TestData(t *testing.T) {
if err != nil {
got = []byte(err.Error())
} else {
- // Since the data file is from file it
- // always end with LF, we need to add
- // new line to output.
- bbuf.WriteByte('\n')
got = bbuf.Bytes()
}
diff --git a/go.mod b/go.mod
index d56ce9b..be9a7b3 100644
--- a/go.mod
+++ b/go.mod
@@ -5,6 +5,6 @@ module git.sr.ht/~shulhan/asciidoctor-go
go 1.18
-require github.com/shuLhan/share v0.39.1-0.20220723102219-eb932c941bd3
+require github.com/shuLhan/share v0.40.0
//replace github.com/shuLhan/share => ../share
diff --git a/go.sum b/go.sum
index 6ac2ee7..27da647 100644
--- a/go.sum
+++ b/go.sum
@@ -1,2 +1,2 @@
-github.com/shuLhan/share v0.39.1-0.20220723102219-eb932c941bd3 h1:QZ7p0n/NEcvtiwBeI2mWnVrwO9Hwxp2W0+sUs7dBORU=
-github.com/shuLhan/share v0.39.1-0.20220723102219-eb932c941bd3/go.mod h1:hb3Kis5s4jPume4YD15JELE67naFybtuALshhh9TlOg=
+github.com/shuLhan/share v0.40.0 h1:C0c1lfKLzogUStIiYJecoTTP9TrEDMz64la1Y1l8Wl0=
+github.com/shuLhan/share v0.40.0/go.mod h1:hb3Kis5s4jPume4YD15JELE67naFybtuALshhh9TlOg=
diff --git a/testdata/test.got.html b/testdata/test.got.html
index bbd2d62..4c0daf7 100644
--- a/testdata/test.got.html
+++ b/testdata/test.got.html
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Author A, Author mid dle B">
<meta name="description" content="meta description">
-<meta name="generator" content="asciidoctor-go 0.3.0-alpha">
+<meta name="generator" content="asciidoctor-go 0.3.0">
<meta name="keywords" content="key, words">
<title>Example Document title</title>
<style>
@@ -2956,7 +2956,7 @@ this sidebar.</p>
<div id="footer">
<div id="footer-text">
1.1.1<br>
-Last updated 2022-07-24 21:29:04 +0700
+Last updated 2022-07-24 21:44:51 +0700
</div>
</div>
</body>