wilkelab / ggtext

Improved text rendering support for ggplot2
https://wilkelab.org/ggtext/
GNU General Public License v2.0
655 stars 37 forks source link

Multiple consecutive spaces are collapsed to one space in ggtext::element_markdown #106

Closed Close-your-eyes closed 1 year ago

Close-your-eyes commented 1 year ago

Dear all,

I noted that when I supply an axis text or axis title or whatever with ggtext::element_markdown, then muliple consecutive spaces are reduced to one space only.

Is that an expected behaviour?

bwiernik commented 1 year ago

This is expected behavior. The Markdown spec calls for consecutive spaces to be collapsed to 1. You can enter   to enter a non-breaking space character, which will be preserved.

Close-your-eyes commented 1 year ago

Very nice. Thank you.