taqueci / redmine_wysiwyg_editor

Redmine WYSIWYG Editor plugin
GNU General Public License v2.0
114 stars 27 forks source link

Spaces around code block #113

Closed taqueci closed 3 years ago

taqueci commented 3 years ago

Carried over from #112

Furthermore, the Wiki page titles always include “_” chars instead of spaces which looks a little ugly. Would it be possible to replace them by spaces, both in the combo box and in the Textile output?

Second, I noticed that the Visual Editor sometimes adds spaces around @…@ blocks, e.g. enter in Textile mode

see (@code@)... some @uid@-specific stuff

switch to the Visual Editor, enter something, and switch back to textile. Now the line above reads

see ( @code@ )... some @uid@ -specific stuff

I think (not sure, though) that the extra space is required iff the adjacent char is a ASCII letter or a digit. As alternative, the space could also be replaced by a <notextile></notextile> sequence.

BTW, a similar effect happens with a ticket link like

(see ticket #1234)

which is converted to

(see ticket #1234 )