Skip to content

Add newlines support in TextWithEmoji#328

Merged
dli7319 merged 1 commit into
google:mainfrom
dli7319:emoji
Jun 2, 2026
Merged

Add newlines support in TextWithEmoji#328
dli7319 merged 1 commit into
google:mainfrom
dli7319:emoji

Conversation

@dli7319
Copy link
Copy Markdown
Collaborator

@dli7319 dli7319 commented Jun 2, 2026

  • Updates WORD_EMOJI_REGEX to separate newlines from standard spacing.
  • Renders newlines as 100% width flex Containers.
  • Assigns zero height to single newlines (forces clean wrap) and full line-height to consecutive newlines (renders empty vertical spacing).
  • Adds unit tests validating newline layout configurations.

@dli7319 dli7319 requested a review from ruofeidu June 2, 2026 17:49
- Updates WORD_EMOJI_REGEX to separate newlines from standard spacing.
- Renders newlines as 100% width flex Containers.
- Assigns zero height to single newlines (forces clean wrap) and full line-height to consecutive newlines (renders empty vertical spacing).
- Adds unit tests validating newline layout configurations.
@dli7319 dli7319 merged commit cb674ba into google:main Jun 2, 2026
8 checks passed
@dli7319 dli7319 deleted the emoji branch June 2, 2026 20:30
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.

2 participants