Closed strarsis closed 1 year ago
What would be the expected result after processing? Wrapping the brackets in a <span>
would be counter-productive if the goal is to prevent a break. I could replace the space with
, but I don't know if this breaks other things (e.g. LaTeX parsers).
We should continue this discussion in https://github.com/mundschenk-at/php-typography.
Having a space between a bracket and its enclosing text, e.g.
( descriptive text )
, can cause the bracket to break without the text it is enclosing:and
This happens with text in French language for example where real spaces between bracket and enclosed text is intentional.
In other languages, some CMS users add a space between bracket and enclosed text just for decorative purposes. This should be handled by CSS instead, which is hard because CSS currently (and quite probably also in the near to mid future) can't select individual letters without using a JavaScript or server-side wrapping tool.