diff options
| author | 2024-10-14 11:43:44 +0200 | |
|---|---|---|
| committer | 2024-10-14 11:43:44 +0200 | |
| commit | be3b8076ca1deab9c60c61fcc8599f5d48e92e52 (patch) | |
| tree | 718fc676925d8e8a9250f38d4b8b6eda0653121b /vendor/github.com/yuin/goldmark/parser/blockquote.go | |
| parent | [chore] Clarify supported platforms, add notes + docs (#3427) (diff) | |
| download | gotosocial-be3b8076ca1deab9c60c61fcc8599f5d48e92e52.tar.xz | |
[chore]: Bump github.com/yuin/goldmark from 1.7.4 to 1.7.6 (#3430)
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.7.4 to 1.7.6.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.7.4...v1.7.6)
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/yuin/goldmark/parser/blockquote.go')
| -rw-r--r-- | vendor/github.com/yuin/goldmark/parser/blockquote.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/vendor/github.com/yuin/goldmark/parser/blockquote.go b/vendor/github.com/yuin/goldmark/parser/blockquote.go index e7778dca7..8faa7ac94 100644 --- a/vendor/github.com/yuin/goldmark/parser/blockquote.go +++ b/vendor/github.com/yuin/goldmark/parser/blockquote.go @@ -28,12 +28,13 @@ func (b *blockquoteParser) process(reader text.Reader) bool { reader.Advance(pos) return true } - if line[pos] == ' ' || line[pos] == '\t' { - pos++ - } reader.Advance(pos) - if line[pos-1] == '\t' { - reader.SetPadding(2) + if line[pos] == ' ' || line[pos] == '\t' { + padding := 0 + if line[pos] == '\t' { + padding = util.TabWidth(reader.LineOffset()) - 1 + } + reader.AdvanceAndSetPadding(1, padding) } return true } |
