zh/ja show unncessary spaces are generated from Markdown newlines #79

Open
opened 2026-02-17 11:43:15 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @Artoria2e5 on GitHub (Sep 10, 2019).

Markdown translates newlines to spaces, which works pretty well for languages that use spaces but not for others like Chinese and Japanese. These languages don't usually use spaces between words, and they definitely don't need spaces after their full-width punctuation marks that already give the space space. But, well, the nicely-newlined summary part are showing spaces everywhere as a result of this neatness. Copy the zh summary into a code editor and you will see it.

We should either ask the Markdown engine to do this (which Hugo cannot do; its CJK support is only for word count) or sacrifise this neatness of source away in these languages. Maybe we should even leave a note for translators who later do similar languages.

Originally created by @Artoria2e5 on GitHub (Sep 10, 2019). Markdown translates newlines to spaces, which works pretty well for languages that use spaces but not for others like Chinese and Japanese. These languages don't usually use spaces between words, and they definitely don't need spaces after their full-width punctuation marks that already give the space space. But, well, the nicely-newlined summary part are showing spaces everywhere as a result of this neatness. Copy [the zh summary](https://www.conventionalcommits.org/zh/v1.0.0-beta.4/) into a code editor and you will see it. We should either ask the Markdown engine to do this (which Hugo cannot do; its CJK support is only for word count) or sacrifise this neatness of source away in these languages. Maybe we should even leave a note for translators who later do similar languages.
Author
Owner

@damianopetrungaro commented on GitHub (Sep 12, 2019):

Hey @Artoria2e5 ! Thanks for the feedback!
Do you want to prepare a PR for that?
It would be awesome!

@damianopetrungaro commented on GitHub (Sep 12, 2019): Hey @Artoria2e5 ! Thanks for the feedback! Do you want to prepare a PR for that? It would be awesome!
Author
Owner

@Artoria2e5 commented on GitHub (Sep 12, 2019):

It is going to mess up a lot of diffs, so I figured that you can maybe @ me before a release to do that…

@Artoria2e5 commented on GitHub (Sep 12, 2019): It is going to mess up a lot of diffs, so I figured that you can maybe @ me before a release to do that…
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/conventionalcommits.org#79