Skip to content

Trim trailing newlines for normal blockquotes too, to mirror callout blockquotes #13302

Closed
@Winterhuman

Description

@Winterhuman

What version of Hugo are you using (hugo version)?

hugo v0.142.0+extended+withdeploy linux/amd64 BuildDate=unknown

Description

Related: #13301

Currently, trailing newlines are removed from blockquotes with callouts, but are kept for normal blockquotes, e.g.

<blockquote>
	<p>Example</p>

</blockquote>

<blockquote>
	<p>Example</p>
</blockquote>

This is slightly confusing (in that sense that it's unintuitive why they'd differ), even if easy enough to mitigate by reimplementing the trimming in the render-blockquotes.html file, so it'd be nice if both types of blockquotes mirrored each other for more consistent HTML output. It's pretty minor, but without a built-in way to prettify HTML in Hugo (related issue: #7190), it is something users will need to keep in mind when wanting to achieve clean & mostly reproducible output

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions