Skip to content

Commit

Permalink
Merge pull request #78 from massdriver-cloud/bugfix/respect-whitespac…
Browse files Browse the repository at this point in the history
…e-tags-during-block-rendering

Added code to respect whitespace trimming flags
  • Loading branch information
danog authored Apr 21, 2024
2 parents 5dfb339 + 14c78e0 commit 2b89126
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions render/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ func (n *BlockNode) render(w *trimWriter, ctx nodeContext) Error {
if renderer == nil {
panic(fmt.Errorf("unset renderer for %v", n))
}
w.TrimLeft(n.TrimLeft)
err := renderer(w, rendererContext{ctx, nil, n})
w.TrimRight(n.TrimRight)
return wrapRenderError(err, n)
}

Expand Down

0 comments on commit 2b89126

Please sign in to comment.