Opened 7 years ago

Closed 4 years ago

# Color macro inserts a whitespace after text

Reported by: Owned by: rjollos rjollos 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 rjollos

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 4 years ago by rjollos

• Owner changed from diroussel to rjollos
• Status changed from new to assigned
• Summary changed from Color macro inserts a whitepsace after text to Color macro inserts a whitespace after text

### comment:3 Changed 4 years ago by rjollos

• Resolution set to fixed
• Status changed from assigned to 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.