Skip to content

Show hashtags after a line break as trailing hashtags - #2548

Open
meet4731 wants to merge 1 commit into
Dimillian:mainfrom
meet4731:fix/2431-trailing-hashtags-line-break
Open

meet4731 wants to merge 1 commit into
Dimillian:mainfrom
meet4731:fix/2431-trailing-hashtags-line-break

Conversation

@meet4731

Copy link
Copy Markdown
Contributor

Fixes #2431

Trailing hashtags were only moved to the hashtag bar when they were in their own paragraph. When they were on the last line of a paragraph, after a single line break, they stayed inline.

removeTrailingTags now checks the last paragraph line by line. If only the last line is hashtags, that line is removed and the rest of the paragraph is kept. A last line that mixes text and hashtags is still left inline.

When editing such a post, the hashtags are added back after a blank line, as for other trailing hashtags.

Tested on iPhone 17 Pro simulator, iOS 27.0, with the posts from the issue: the two that showed inline hashtags now show them in the hashtag bar, and one that already worked is unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Hasgtags sometime not displayed in chips

1 participant