tomasbjerre / git-changelog-maven-plugin

Maven plugin that can generate a changelog, or releasenotes, from git repository
Other
80 stars 36 forks source link

retrieving git log as plain text #28

Closed edeso closed 3 years ago

edeso commented 3 years ago

hi,

currently looking for a way to retrieve the log text unescaped e.g instead of

  <repositories>

plain text

  <repositories>

but do not seem to find a way. ist it possible? how? ..thanks!

tomasbjerre commented 3 years ago

You can avoid escaping by using triple { like this:

{{{messageTitle}}}

edeso commented 3 years ago

thanks! did i miss the documentation somewhere?

also the result is now

2021-05-17 19:35:02 - Jukka Rahkonen - https://github.com/openjump-gis/openjump/commit/74c2c98582ff2bf
Add download link for OpenJUMP 2 snapshots

2021-05-17 15:09:17 - ed - https://github.com/openjump-gis/openjump/commit/860ec2c66770ddf
- minor rewording/reformatting
  - readded <timeSource>build</timeSource> in build-helper-maven-plugin,
  but deactivated it's execution m2e, cause it's not needed there and also
  chokes on timesource build

but i'd like the first comment line to be indented like the rest below. any way to achieve that?

tomasbjerre commented 3 years ago

The template is rendered with this lib: https://github.com/jknack/handlebars.java

So that is where to look for these things

edeso commented 3 years ago

sorry! out of my depth here. are you saying there is no way to configure it as is? thx!

tomasbjerre commented 3 years ago

I dont know if it is possible. I guess this might be the pretty printing feature in Handlebars. It might be what causes the first indentation to be removed.

It is probably better to open an issue in their project.

edeso commented 3 years ago

no worries!

back to the other question. did i miss something in your examples about the non-escaping? didn't really find the documentaion as well btw.

still, great work! thanks!

tomasbjerre commented 3 years ago

No I dont think I have any example of that. You just need to know what to google. Try google "mustache disable escaping" and you will find it.

edeso commented 3 years ago

would you be opposed to a pull request that extends the example pom with a plain text version like i am in need of? just in case other might want it.

tomasbjerre commented 3 years ago

Such a pull request is welcome!