aboutsummaryrefslogtreecommitdiff
path: root/html_backend.go
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-12-03 04:01:38 +0700
committerShulhan <m.shulhan@gmail.com>2020-12-03 04:01:38 +0700
commit0c1fa764757682dd2ae27ad24ca7f0b6e99c7494 (patch)
treeda442042102ba378ceb23e47d25ac7f98844cd7c /html_backend.go
parente80d5e10ee50abb56d5af3f1adefcc5262f56cd9 (diff)
downloadasciidoctor-go-0c1fa764757682dd2ae27ad24ca7f0b6e99c7494.tar.xz
all: remove unused methods and unexport internal methods
Diffstat (limited to 'html_backend.go')
-rw-r--r--html_backend.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/html_backend.go b/html_backend.go
index d326c33..a9acad4 100644
--- a/html_backend.go
+++ b/html_backend.go
@@ -63,7 +63,7 @@ func htmlWriteBlockBegin(node *adocNode, out io.Writer, addClass string) {
fmt.Fprint(out, ">")
}
- if !(node.IsStyleAdmonition() ||
+ if !(node.isStyleAdmonition() ||
node.kind == nodeKindBlockImage ||
node.kind == nodeKindBlockExample ||
node.kind == nodeKindBlockSidebar) &&
@@ -218,7 +218,7 @@ func htmlWriteBlockVideo(node *adocNode, out io.Writer) {
isVimeo bool
)
- src := node.GetVideoSource()
+ src := node.getVideoSource()
width, withWidth := node.Attrs[attrNameWidth]
if withWidth {
width = fmt.Sprintf(` width="%s"`, width)
@@ -413,10 +413,10 @@ func htmlWriteInlineImage(node *adocNode, out io.Writer) {
func htmlWriteListDescription(node *adocNode, out io.Writer) {
var openTag string
- if node.IsStyleQandA() {
+ if node.isStyleQandA() {
htmlWriteBlockBegin(node, out, "qlist qanda")
openTag = "\n<ol>"
- } else if node.IsStyleHorizontal() {
+ } else if node.isStyleHorizontal() {
htmlWriteBlockBegin(node, out, "hdlist")
openTag = "\n<table>"
} else {
@@ -428,9 +428,9 @@ func htmlWriteListDescription(node *adocNode, out io.Writer) {
}
func htmlWriteListDescriptionEnd(node *adocNode, out io.Writer) {
- if node.IsStyleQandA() {
+ if node.isStyleQandA() {
fmt.Fprintf(out, "\n</ol>\n</div>")
- } else if node.IsStyleHorizontal() {
+ } else if node.isStyleHorizontal() {
fmt.Fprintf(out, "\n</table>\n</div>")
} else {
fmt.Fprintf(out, "\n</dl>\n</div>")