diff options
| author | 2025-04-28 11:20:24 +0000 | |
|---|---|---|
| committer | 2025-04-28 11:20:24 +0000 | |
| commit | 436765a6a2ddf400b6e06c9a7c3283b1351fcbcd (patch) | |
| tree | c1a0e969c23a74eaca258c709db1776763d576dd /vendor/github.com/yuin | |
| parent | [chore] Update build to use new woodpecker dind container, bump version numbe... (diff) | |
| download | gotosocial-436765a6a2ddf400b6e06c9a7c3283b1351fcbcd.tar.xz | |
bump dependencies: minio-go, go-sqlite3, goldmark, otel, x/image/webp (#4075)
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4075
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
Diffstat (limited to 'vendor/github.com/yuin')
| -rw-r--r-- | vendor/github.com/yuin/goldmark/ast/block.go | 1 | ||||
| -rw-r--r-- | vendor/github.com/yuin/goldmark/parser/parser.go | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/vendor/github.com/yuin/goldmark/ast/block.go b/vendor/github.com/yuin/goldmark/ast/block.go index eae7acdca..d17564a99 100644 --- a/vendor/github.com/yuin/goldmark/ast/block.go +++ b/vendor/github.com/yuin/goldmark/ast/block.go @@ -515,6 +515,7 @@ func (n *HTMLBlock) Dump(source []byte, level int) { cl := n.ClosureLine fmt.Printf("%sClosure: \"%s\"\n", indent2, string(cl.Value(source))) } + fmt.Printf("%sHasBlankPreviousLines: %v\n", indent2, n.HasBlankPreviousLines()) fmt.Printf("%s}\n", indent) } diff --git a/vendor/github.com/yuin/goldmark/parser/parser.go b/vendor/github.com/yuin/goldmark/parser/parser.go index b05db1356..7ec40b31a 100644 --- a/vendor/github.com/yuin/goldmark/parser/parser.go +++ b/vendor/github.com/yuin/goldmark/parser/parser.go @@ -1096,7 +1096,7 @@ func (p *parser) parseBlocks(parent ast.Node, reader text.Reader, pc Context) { // When current node is a container block and has no children, // we try to open new child nodes if state&HasChildren != 0 && i == lastIndex { - isBlank = isBlankLine(lineNum-1, i, blankLines) + isBlank = isBlankLine(lineNum-1, i+1, blankLines) p.openBlocks(be.Node, isBlank, reader, pc) break } |
