Skip to content

Handle %c CSS styling in console format strings#92

Merged
johncarmack1984 merged 1 commit into
mainfrom
fix-console-css-expansion
Jan 14, 2026
Merged

Handle %c CSS styling in console format strings#92
johncarmack1984 merged 1 commit into
mainfrom
fix-console-css-expansion

Conversation

@johncarmack1984
Copy link
Copy Markdown
Collaborator

Summary

  • Add support for %c CSS styling format specifier in formatPrintf
  • CSS arguments are consumed but not rendered (terminals don't support CSS)
  • Fixes logs like %c[·] %cReact Scan showing raw format strings instead of [·] React Scan

Test plan

  • Added 3 unit tests for %c handling

@github-actions
Copy link
Copy Markdown
Contributor

Package Changes Through d359087

There are 2 changes which include tracing with patch, tracing-js with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tracing 0.3.0 0.3.1
tracing-js 0.3.0 0.3.1

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@johncarmack1984 johncarmack1984 merged commit 26b5482 into main Jan 14, 2026
7 checks passed
@johncarmack1984 johncarmack1984 deleted the fix-console-css-expansion branch January 14, 2026 18:45
@github-actions github-actions Bot mentioned this pull request Jan 14, 2026
johncarmack1984 pushed a commit that referenced this pull request Jan 14, 2026
# Version Updates

Merging this PR will release new versions of the following packages
based on your change files.




# tracing

## [0.3.1]
- b61f9ab (#89 by @johncarmack1984) Add crates.io, docs.rs, npm,
license, and CI status badges to README.
- 26b5482 (#92 by @johncarmack1984) Handle `%c` CSS styling format
specifier in console messages. The CSS argument is consumed but not
rendered since terminals don't support CSS styling.
- 393ed48 (#91 by @johncarmack1984) Convert doc examples from `ignore`
to `no_run` for compiler verification. Fix layer ordering in flamegraph
examples (BoxedFlameLayer must be first).
- 49e3b90 (#94 by @johncarmack1984) Automatically update README version
when covector runs version bumps.



# tracing-js

## [0.3.1]
- b61f9ab (#89 by @johncarmack1984) Add crates.io, docs.rs, npm,
license, and CI status badges to README.
- 26b5482 (#92 by @johncarmack1984) Handle `%c` CSS styling format
specifier in console messages. The CSS argument is consumed but not
rendered since terminals don't support CSS styling.
- 393ed48 (#91 by @johncarmack1984) Convert doc examples from `ignore`
to `no_run` for compiler verification. Fix layer ordering in flamegraph
examples (BoxedFlameLayer must be first).
- 49e3b90 (#94 by @johncarmack1984) Automatically update README version
when covector runs version bumps.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

1 participant