conventionalcommits.org icon indicating copy to clipboard operation
conventionalcommits.org copied to clipboard

zh/ja show unncessary spaces are generated from Markdown newlines

Open Artoria2e5 opened this issue 6 years ago • 2 comments

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.

Artoria2e5 avatar Sep 10 '19 15:09 Artoria2e5

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

damianopetrungaro avatar Sep 12 '19 09:09 damianopetrungaro

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 avatar Sep 12 '19 12:09 Artoria2e5