leoforfree / cz-customizable

A standalone commit message helper or customizable commitizen adapter for https://github.com/commitizen/cz-cli
MIT License
604 stars 201 forks source link

fix: incorrect body split #236

Closed Huliiiiii closed 2 months ago

Huliiiiii commented 3 months ago

Add breaklines before wrap body

For example:

* foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar|* foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar 

Before

Wrap first, split line at 100 characters

* foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar|* 
foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar 

Then split with "|":

* foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar
* 
foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar 

Now

The output is correct:


* foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar
* foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar 
JGhignatti commented 3 months ago

I'd love if we could have this PR merged, @leonardoanalista are you still active here? I'd like to help maintain this tool.

leonardoanalista commented 2 months ago

Hey all, any help would be great. Thanks for the PRs.