Skip to content

Fix css-tailwind extra trailing newline#144

Open
Jalendar10 wants to merge 2 commits into
google-labs-code:mainfrom
Jalendar10:codex/fix-css-tailwind-newline
Open

Fix css-tailwind extra trailing newline#144
Jalendar10 wants to merge 2 commits into
google-labs-code:mainfrom
Jalendar10:codex/fix-css-tailwind-newline

Conversation

@Jalendar10

Copy link
Copy Markdown

Summary

Closes #139 by preventing css-tailwind exports from adding an extra newline at the CLI layer.

Changes

  • Writes serialized Tailwind v4 CSS directly with process.stdout.write(...) instead of console.log(...).
  • Adds an export command regression test that verifies css-tailwind output ends with exactly one newline.

Validation

  • bun test packages/cli/src/commands/export.test.ts
  • bun test packages/cli/src/commands packages/cli/src/linter/tailwind/v4
  • bun run --cwd packages/cli lint
  • bun run --cwd packages/cli build
  • bun test
  • Byte-level reproduction now reports one trailing newline byte:
    • b'primary: #ffffff;\n}\n'
    • 1

@google-cla

google-cla Bot commented Jun 28, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

css-tailwind export emits an extra trailing newline

1 participant