Modify

Opened 5 years ago

Closed 2 years ago

#5651 closed defect (fixed)

Color macro inserts a whitespace after text

Reported by: rjollos Owned by: rjollos
Priority: normal Component: ColorMacro
Severity: normal Keywords:
Cc: Trac Release: 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.

Attachments (0)

Change History (3)

comment:1 Changed 5 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 2 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 2 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.

Add Comment

Modify Ticket

Action
as closed The owner will remain rjollos.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.