Detect HTML Editor in Template

We are working on the upgrade from 3.6 to 3.8, and many of our users
are very excited about the WYSIWYG editor. The current problem is that
the editor breaks the formatting of our Canned-Replies.
http://requesttracker.wikia.com/wiki/CannedReplies

All the line breaks of the templates/canned-replies are stripped out.
And I could not find any option in the FCKEditor settings that would
stop that behavior.

I did test adding an html
to the template, and that works -
unless the user has opted to NOT use the WYSIWYG editor, then they
have all this extra HTML on their reply.

I really don’t want to have to maintain multiple templates for
WYSIWYG/Non-WYSIWYG users.

I did find in the list a chuck of code :
if ( RT->Config->Get(‘MessageBoxRichText’,$session{‘CurrentUser’}) )

I thought I could use an “IF using editor, then HTML version else Plain
Text version” into my templates, but not sure how to go about
getting the IF/THEN into my template. (my only Perl experience comes
from using RT for the last 5 years… so please be gentle, my Perl
skills are pretty weak )

Any help would be greatly appreciated. Thank you in advance.

Associate yourself with men of good quality if you esteem
your own reputation; for 'tis better to be alone then in bad
company. - George Washington, Rules of Civility