Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9786

Preserve leading whitespaces in commit message bodies (Redmine)

$
0
0

(see also the same issue in GitLab)

git log correctly displays indentation and alignment created by inserting leading whitespaces:

Do some cool stuffclass CoolStuffCapable+ function doSomeCoolStuff does cool stuff  ? beware of uncool limitations I need to fix later    ? soonGettingSolved will be fixed within the current major release    ? longLongWithUs will remain until at least the next major release  ? there is a precondition I cannot get rid of? moved field BoringStuffCapable::notSoInternalState to fix Feature Envy  ? renamed to reallyInternalState accordingly- constant MAYBE_UNUSED was unusedrefs #1

Redmine 3.3.1 emits the commit message as formatted HTML text using <p> and <br> tags, with leading whitespaces trimmed out. Even if the whitespaces were still present though, browsers would not render them without additional <pre> or <code> tags.

Do some cool stuffclass CoolStuffCapable+ function doSomeCoolStuff does cool stuff? beware of uncool limitations I need to fix later? soonGettingSolved will be fixed within the current major release? longLongWithUs will remain until at least the next major release? there is a precondition I cannot get rid of? moved field BoringStuffCapable::notSoInternalState to fix Feature Envy? renamed to reallyInternalState accordingly- constant MAYBE_UNUSED was unusedrefs #1

Can I make it display the correct message?
Can I make it just emit the output of git log (which is correct to begin with)?

(The given version is the minimal version I can use. Updating to a later version is fine.)


Viewing all articles
Browse latest Browse all 9786

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>