aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-03-02 23:51:48 +0700
committerShulhan <ms@kilabit.info>2023-03-03 00:02:28 +0700
commitb53231ab30e1ace9792362f61a93e6cea073af73 (patch)
tree256be87c757515ac8f6c37d819b57dfa16349917
parent7f5909865d9595009bb6f6d8975d84bb3d8e369f (diff)
downloadciigo-b53231ab30e1ace9792362f61a93e6cea073af73.tar.xz
all: update asciidoctor-go and share module to latest version
Changes on the asciidoctor-go v0.4.1, === Bug fixes * all: fix empty line printed on ToHTMLBody or ToHTMLEmbedded * all: ignore parsing block image in paragraph === Enhancements * all: handle empty preamble
-rw-r--r--go.mod8
-rw-r--r--go.sum16
-rw-r--r--watcher_test.go18
3 files changed, 14 insertions, 28 deletions
diff --git a/go.mod b/go.mod
index 5dbc0e4..6b839e1 100644
--- a/go.mod
+++ b/go.mod
@@ -6,13 +6,13 @@ module git.sr.ht/~shulhan/ciigo
go 1.18
require (
- git.sr.ht/~shulhan/asciidoctor-go v0.3.2
- github.com/shuLhan/share v0.43.0
+ git.sr.ht/~shulhan/asciidoctor-go v0.4.1
+ github.com/shuLhan/share v0.44.0
)
require (
- golang.org/x/net v0.0.0-20220907135653-1e95f45603a7 // indirect
- golang.org/x/sys v0.0.0-20220908164124-27713097b956 // indirect
+ golang.org/x/net v0.7.0 // indirect
+ golang.org/x/sys v0.5.0 // indirect
)
//replace git.sr.ht/~shulhan/asciidoctor-go => ../asciidoctor-go
diff --git a/go.sum b/go.sum
index 67f1014..e9e750f 100644
--- a/go.sum
+++ b/go.sum
@@ -1,8 +1,8 @@
-git.sr.ht/~shulhan/asciidoctor-go v0.3.2 h1:LePNUTKHKjrbaT/J53OOeefm+rU1yHl8je8F7FXh6DQ=
-git.sr.ht/~shulhan/asciidoctor-go v0.3.2/go.mod h1:eW61SyB6Yl9hrLjqqPRI3VW7wV9Jnzm2fePJscvx/PU=
-github.com/shuLhan/share v0.43.0 h1:WEaMg7WIX6YAvDphQjbPSZqz/ubuotRtD7Fq4zGO8Wc=
-github.com/shuLhan/share v0.43.0/go.mod h1:nus6RSASS+5P1ZUe89ciJZyp3v+IY1xqLdKwtnuGsaA=
-golang.org/x/net v0.0.0-20220907135653-1e95f45603a7 h1:1WGATo9HAhkWMbfyuVU0tEFP88OIkUvwaHFveQPvzCQ=
-golang.org/x/net v0.0.0-20220907135653-1e95f45603a7/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
-golang.org/x/sys v0.0.0-20220908164124-27713097b956 h1:XeJjHH1KiLpKGb6lvMiksZ9l0fVUh+AmGcm0nOMEBOY=
-golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+git.sr.ht/~shulhan/asciidoctor-go v0.4.1 h1:Zev0L5HyMjH43sPaoJal8E/Hmbel/akoGOxNykhN4Dw=
+git.sr.ht/~shulhan/asciidoctor-go v0.4.1/go.mod h1:vRHDUl3o3UzDkvVR9dEFYQ0JDqOh0TKpOZWvOh/CGZU=
+github.com/shuLhan/share v0.44.0 h1:Afom8pQrzNYtUZM53y+eqlZw5lkFm7bgl3QjZ3ARsgg=
+github.com/shuLhan/share v0.44.0/go.mod h1:BnjohSsgDFMeYQ0/ws7kzb1oABZdVbEwDNGbUhOLee4=
+golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g=
+golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
+golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU=
+golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
diff --git a/watcher_test.go b/watcher_test.go
index 31d221a..6b16223 100644
--- a/watcher_test.go
+++ b/watcher_test.go
@@ -95,16 +95,9 @@ func testCreate(t *testing.T) {
expBody = `<!DOCTYPE>
<html>
<head><title></title></head>
-<body>
-<div id="header">
-<div class="details">
-</div>
+<body><div id="header">
</div>
<div id="content">
-<div id="preamble">
-<div class="sectionbody">
-</div>
-</div>
</div>`
gotBody, err = os.ReadFile(got.pathHtml)
@@ -139,17 +132,10 @@ func testUpdate(t *testing.T) {
expBody = `<!DOCTYPE>
<html>
<head><title>Hello</title></head>
-<body>
-<div id="header">
+<body><div id="header">
<h1>Hello</h1>
-<div class="details">
-</div>
</div>
<div id="content">
-<div id="preamble">
-<div class="sectionbody">
-</div>
-</div>
</div>`
gotBody, err = os.ReadFile(got.pathHtml)