jkbrzt / rrule

JavaScript library for working with recurrence rules for calendar dates as defined in the iCalendar RFC and more.
https://jkbrzt.github.io/rrule
Other
3.28k stars 510 forks source link

[Feature Request] in the toText() output, set the natural date with non-breaking spaces. #496

Open ogrotten opened 2 years ago

ogrotten commented 2 years ago

Currently, using toText() can result in something like

every week on Sunday until April 3, 2022

I'm suggesting a feature for a non-breaking space option (or default) to keep the 'date word' together like so

every week on Sunday until April 3, 2022

KrisLau commented 2 years ago

Feel free to open a PR to add this feature! The package is currently looking for active maintainers as well if you are interested: https://github.com/jakubroztocil/rrule/issues/450