Skip to content

fix: new cmd with quote description#46

Merged
Songmu merged 2 commits intoSongmu:mainfrom
jackchuka:fix/2026-01-02-new-quoted-desc
Jan 3, 2026
Merged

fix: new cmd with quote description#46
Songmu merged 2 commits intoSongmu:mainfrom
jackchuka:fix/2026-01-02-new-quoted-desc

Conversation

@jackchuka
Copy link
Copy Markdown
Contributor

fixes #45

@jackchuka jackchuka marked this pull request as ready for review January 2, 2026 14:31
Comment thread cmd_new.go Outdated

var formulaTmpl = template.Must(
template.New("formulaTmpl").Funcs(template.FuncMap{
"escapeDesc": escapeDescd,
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! We might use this in other places as well, so could you rename the function to escapeSingleQuotes?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good 👍
I've addressed in 88d6f75

@jackchuka jackchuka requested a review from Songmu January 3, 2026 02:58
@Songmu Songmu merged commit cc1be92 into Songmu:main Jan 3, 2026
@github-actions github-actions bot mentioned this pull request Jan 3, 2026
@jackchuka jackchuka deleted the fix/2026-01-02-new-quoted-desc branch January 3, 2026 04:42
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.

maltmill new generates invalid formula when repo description contains a single quote

2 participants