Opened 8 years ago

Closed 5 years ago

#5651 closed defect (fixed)

Color macro inserts a whitespace after text

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Component: ColorMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11


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.

Attachments (0)

Change History (3)

comment:1 Changed 8 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
Status: newassigned
Summary: Color macro inserts a whitepsace after textColor macro inserts a whitespace after text

comment:3 Changed 5 years ago by Ryan J Ollos

Resolution: fixed
Status: assignedclosed

(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

Change Properties
Set your email in Preferences
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.