Skip to content

Fix css-tailwind extra trailing newline - #144

Merged
davideast merged 3 commits into
google-labs-code:mainfrom
Jalendar10:codex/fix-css-tailwind-newline
Jul 27, 2026
Merged

davideast merged 3 commits into
google-labs-code:mainfrom
Jalendar10:codex/fix-css-tailwind-newline

Conversation

@Jalendar10

Copy link
Copy Markdown
Contributor

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.

@davideast
davideast merged commit d2250c9 into google-labs-code:main Jul 27, 2026
2 checks passed
@davideast davideast mentioned this pull request Jul 27, 2026
wang-junjian pushed a commit to wang-junjian/design.md that referenced this pull request Nov 23, 2026
…ing newline (google-labs-code#144)

* fix: avoid extra css-tailwind newline

* chore: retrigger cla check

---------

Co-authored-by: David East <[email protected]>
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

2 participants