mattermost-developer-documentation icon indicating copy to clipboard operation
mattermost-developer-documentation copied to clipboard

Help Wanted: Code blocks within tabbed content blocks are being double spaced

Open devinbinnie opened this issue 10 months ago • 1 comments

Steps to reproduce: Create a code block within some tabbed content. Example: https://github.com/mattermost/mattermost-developer-documentation/blob/6ae67842ab3b57a9645d6657ffbcd43b872ca7cc/site/content/contribute/more-info/desktop/developer-setup/ubuntu.md?plain=1#L2

Expected: The code block should render without extra spacing Screenshot 2023-10-13 at 10 01 29 AM

Observed: The code block adds arbitrary spaces between lines Screenshot 2023-10-13 at 10 02 09 AM

Potential cause: It's likely an issue with the Hugo template generator. I noticed that the generated HTML is adding a newline after each line within the span tag, so it's getting double spaced.

devinbinnie avatar Oct 13 '23 14:10 devinbinnie