The
<pre>
-
</pre>
should be optional.

Having a simple space should be sufficient.
FYI
The search text validation and formatting can be found here:
https://github.com/geoadmin/mf-chsdi3/blob/dev_enable_timeInterval_search/chsdi/lib/validation.py#L356