Opened 8 years ago

Closed 5 years ago

Color macro inserts a whitespace after text

Reported by: Owned by: Ryan J Ollos Ryan J Ollos normal ColorMacro normal 0.11

Description

The color macro seems to insert a whitespace before and after the text, which makes it difficult to use for inline text and still get nice formatting.

For instance,

This is an example of[[Color(,blue,colored text)]].


gets formatted as,

This is an example of colored text .


Note the whitespace before and after 'colored', whereas none was specified in my sentence.

comment:1 Changed 7 years ago by Ryan J Ollos

I misspoke in my example; there is whitespace added before and after the phrase 'colored text'.

Looking at the code it seems like we should handle the case of not specifying a background color in a special way by not using any padding in that case.

comment:2 Changed 5 years ago by Ryan J Ollos

Owner: changed from David Roussel to Ryan J Ollos new → assigned Color macro inserts a whitepsace after text → Color macro inserts a whitespace after text

comment:3 Changed 5 years ago by Ryan J Ollos

Resolution: → fixed assigned → closed

(In [11892]): Fixes #1605, #5651,

• Use Genshi to construct span element.
• Removed padding around span element.
• Format wiki to html, allowing wiki markup to be used as the text argument to the Color macro.

Modify Ticket

Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.