Skip to content

Commit

Permalink
fix: specify whitespace between author prefix and byline (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoo authored Sep 9, 2021
1 parent 549f03a commit a91ffb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/blocks/homepage-articles/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function newspack_blocks_format_byline( $author_info ) {
$index = -1;
$elements = array_merge(
[
'<span class="author-prefix">' . esc_html_x( 'by', 'post author', 'newspack-blocks' ) . ' </span>',
'<span class="author-prefix">' . esc_html_x( 'by', 'post author', 'newspack-blocks' ) . '</span> ',
],
array_reduce(
$author_info,
Expand Down
2 changes: 1 addition & 1 deletion src/shared/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const formatAvatars = authorInfo =>

export const formatByline = authorInfo => (
<span className="byline">
<span className="author-prefix">{ _x( 'by', 'post author', 'newspack-blocks' ) } </span>
<span className="author-prefix">{ _x( 'by', 'post author', 'newspack-blocks' ) }</span>{ ' ' }
{ authorInfo.reduce( ( accumulator, author, index ) => {
return [
...accumulator,
Expand Down

0 comments on commit a91ffb7

Please sign in to comment.