Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove extraneous space from figure shortcode #8404

Merged
merged 1 commit into from
Apr 15, 2021
Merged

Remove extraneous space from figure shortcode #8404

merged 1 commit into from
Apr 15, 2021

Conversation

jmooring
Copy link
Member

Fixes #8401

@jmooring jmooring marked this pull request as draft April 10, 2021 16:17
Copy link

@ndim ndim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few lines below the <!-- Closing img tag --> comment, the figure shortcode defines another <a> anchor element, this time inside a <figcaption> element.

Interestingly, the definition of this element uses {{- end -}} after closing the opening <a> tag, which AFAICT removes the same type of whitespace which is an issue in the first <a> element defined by the figure shortcode.

So AFAICT, if you copy the solution from line 22 to line 4, that should fix the issue.

hugolib/shortcode_test.go Outdated Show resolved Hide resolved
@jmooring jmooring marked this pull request as ready for review April 14, 2021 18:51
@bep bep merged commit 9b34d42 into gohugoio:master Apr 15, 2021
@jmooring jmooring deleted the issue-8401 branch April 15, 2021 19:56
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

figure shortcode produces unwanted space inside anchor element
3 participants