Ticket #5651 (closed defect: fixed)

Opened 4 years ago

Last modified 10 months ago

Color macro inserts a whitespace after text

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

Change History

09/13/09 16:13:13 changed 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.

08/04/12 06:23:09 changed by rjollos

  • status changed from new to assigned.
  • owner changed from diroussel to rjollos.
  • summary changed from Color macro inserts a whitepsace after text to Color macro inserts a whitespace after text.

08/04/12 06:40:10 changed by rjollos

  • status changed from assigned to closed.
  • resolution set to fixed.

(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/Change #5651 (Color macro inserts a whitespace after text)




Change Properties
Action