Skip to content

Fix italic in dotted styles - #304

Merged
djc merged 1 commit into
console-rs:mainfrom
Don-Yin:fix/dotted-italic
Oct 26, 2026
Merged

djc merged 1 commit into
console-rs:mainfrom
Don-Yin:fix/dotted-italic

Conversation

@Don-Yin

@Don-Yin Don-Yin commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

I reproduced #115 with Style::from_dotted_str("italic"): it produced plain text while Style::new().italic() emitted the italic escape sequence.

I added the missing match arm and a regression test for italic both on its own and in bold.italic.underlined. Fixes #115.

I ran make test, make lint, and make format-check on macOS.

Dotted italic output before and after the fix

Signed-off-by: Don Yin <Don_Yin@outlook.com>

@djc djc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@djc
djc merged commit 3271250 into console-rs:main Oct 26, 2026
20 checks passed
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.

Italic missing from from_dotted_str.

2 participants