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

fix(notice): validate correct keyword #5808

Merged
merged 3 commits into from
Nov 4, 2024
Merged

fix(notice): validate correct keyword #5808

merged 3 commits into from
Nov 4, 2024

Conversation

JanDeDobbeleer
Copy link
Owner

@JanDeDobbeleer JanDeDobbeleer commented Nov 4, 2024

Prerequisites

  • I have read and understood the contributing guide.
  • The commit message follows the conventional commits guidelines.
  • Tests for the changes have been added (for bug fixes / features).
  • Docs have been added/updated (for bug fixes / features).

Description

resolves #5809

text, length := e.writeBlockSegments(block)

// do not print anything when we don't have any text
if length == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Following the call stack - though maybe I missed something - it seems like whitespace would be significant, right? My second line had leading and trailing whitespace for aesthetics and mouse selection such that the rendered length would always be >= 2. Or was whitespace stripped if it was only whitespace somewhere? If needed, I can move any whitespace into conditionals.

Copy link
Owner Author

Choose a reason for hiding this comment

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

I tested this and it hides the block correctly. Whitespace segments are treated as empty.

@JanDeDobbeleer JanDeDobbeleer merged commit 014dc08 into main Nov 4, 2024
9 checks passed
@JanDeDobbeleer JanDeDobbeleer deleted the fix-v24 branch November 4, 2024 19:06
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.

Upgraded theme in 24.0.2 renders extra newline, has schema validation errors
2 participants