Skip to content

Conversation

@gmercey
Copy link

@gmercey gmercey commented Nov 21, 2025

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

small improvement to the formatHTML function in src/runtime/hydration/composables.ts, ensuring that indentation is never negative when formatting HTML. The change uses Math.max(0, indent) instead of indent for all indentation calculations, which prevents potential formatting errors if indent becomes negative.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 21, 2025

Open in StackBlitz

npm i https://pkg.pr.new/nuxt/hints/@nuxt/hints@146

commit: 27cc841

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