Overriding CSS in ticket display?

I have some tickets that have HTML (coming from email, which was pasted
from Word), so they have lots of

which RT
displays with a 1em margin, so they get really spaced out. I can easily
fix that in main.css or ticket.css like this:

p.MsoNormal {
margin: 0px 0px;
}

but how can I make that fix resist being overwritten by new versions of RT?

– Gary Oberbrunner

I have some tickets that have HTML (coming from email, which was pasted
from Word), so they have lots of

which RT
displays with a 1em margin, so they get really spaced out. I can easily
fix that in main.css or ticket.css like this:

p.MsoNormal {
margin: 0px 0px;
}

but how can I make that fix resist being overwritten by new versions of RT?

You’re looking for callbacks. See
http://wiki.bestpractical.com/view/Customizing.

If you told us what version of RT you’re running, someone could point
you to the right place to look.

Thomas

I have some tickets that have HTML (coming from email, which was pasted
from Word), so they have lots of

which RT
displays with a 1em margin, so they get really spaced out. I can easily
fix that in main.css or ticket.css like this:

p.MsoNormal {
margin: 0px 0px;
}

but how can I make that fix resist being overwritten by new versions of RT?
You’re looking for callbacks. See
http://wiki.bestpractical.com/view/Customizing.

If you told us what version of RT you’re running, someone could point
you to the right place to look.
Doh, sorry about that. 3.8.2 on Ubuntu 8.04. I didn’t realize there
were callbacks for CSS – how’s that even work?!

. . . . . . . . . . . . . . . . . . . . . . . . .
Gary Oberbrunner garyo@genarts.com
GenArts, Inc. Tel: 617-492-2888
955 Mass. Ave Fax: 617-492-2852
Cambridge, MA 02139 USA www.genarts.com

I have some tickets that have HTML (coming from email, which was pasted
from Word), so they have lots of

which RT
displays with a 1em margin, so they get really spaced out. I can easily
fix that in main.css or ticket.css like this:

p.MsoNormal {
margin: 0px 0px;
}

but how can I make that fix resist being overwritten by new versions of RT?
You’re looking for callbacks. See
http://wiki.bestpractical.com/view/Customizing.

If you told us what version of RT you’re running, someone could point
you to the right place to look.
Doh, sorry about that. 3.8.2 on Ubuntu 8.04. I didn’t realize there
were callbacks for CSS – how’s that even work?!

Put your fix in
…/local/rt/html/Callbacks/MSfix/NoAuth/css/web2/main.css/End

Jeff

Put your fix in
…/local/rt/html/Callbacks/MSfix/NoAuth/css/web2/main.css/End
Hmm, can’t get it to work for me. Tried local/rt/html as you have
above, and just local/html where all my other callbacks are… doesn’t
seem to load my file into main-squished.css. (Yes, I’m restarting
apache.) I’ll turn on some logging & see if I can figure it out.

. . . . . . . . . . . . . . . . . . . . . . . . .
Gary Oberbrunner garyo@genarts.com
GenArts, Inc. Tel: 617-492-2888
955 Mass. Ave Fax: 617-492-2852
Cambridge, MA 02139 USA www.genarts.com

Put your fix in
…/local/rt/html/Callbacks/MSfix/NoAuth/css/web2/main.css/End
Hmm, can’t get it to work for me. Tried local/rt/html as you have
above, and just local/html where all my other callbacks are… doesn’t
seem to load my file into main-squished.css. (Yes, I’m restarting
apache.) I’ll turn on some logging & see if I can figure it out.

Got it. It goes in local/html/Callbacks/MSfix/NoAuth/css/web2/main.css/End.
(and ticket.css isn’t overridable in that way, has to be main.css I think)
I’ll update the wiki.

– Gary