Skip to content

fix: apply specific value style#214

Open
stoned wants to merge 1 commit into
charmbracelet:mainfrom
stoned:b-7dcc94
Open

fix: apply specific value style#214
stoned wants to merge 1 commit into
charmbracelet:mainfrom
stoned:b-7dcc94

Conversation

@stoned

@stoned stoned commented May 24, 2026

Copy link
Copy Markdown

..., if any, for all lines of a multiple lines value

  • I have read CONTRIBUTING.md.
  • [ ] I have created a discussion that was approved by a maintainer (for new features). (N/A)

Please, compare the provided example without and with the proposed fix.

package main

import (
	"os"
	"charm.land/lipgloss/v2"
	"charm.land/log/v2"
)

func main() {
	styles := log.DefaultStyles()
	styles.Values["foo"] = lipgloss.NewStyle().Foreground(lipgloss.Yellow)
	logger := log.New(os.Stdout)
	logger.SetStyles(styles)
	logger.Info("dummy", "foo", "line1\nline2")
}

..., if any, for all lines of a multiple lines value
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