Cool
Another issue I (eventually) noticed was that If the answer has more than one block level element (paragraph, list etc), there was no margin between the first paragraph and the next element if the "Q:" was inside the same paragraph tag as the answer. eg.
<p>Q:This is the first part of the answer</p>
<p>This is the second</p>
While it’s no problem for me to move the Q: outside the p tags eventually the FAQ will be updated by a non-technical user from the RTE (I figure this will probably often be the case too

)
Being a front-end guy that’s pretty lousy at "real" code it took me a while, but eventually tracked it down to around line 160:
$output .= '<p id="faq'.$itemCount.'-title" class="handcursor">';
$output .= '<span class="faqQuestion">';
$output .= $items[0];
$output .= '</span>';
$output .= '</p>';
$output .= '<div id="faq'.$itemCount.'" class="switchgroup1">';
//$output .= '<p class="faqAnswer">';
$output .= $items[1];
//$output .= '</p>';
$output .= '</div>';
A quick look at the generated source shows:
<div class="faqContainer">
<p id="faq1-title" class="handcursor"><span class="faqQuestion">The question</p>
<p></span></p>
<div id="faq1" class="switchgroup1">This is the first part of the answer</p>
<p>This is the second part of the answer</p>
So I figure that the snippet is cutting off the initial opening <p> that the RTE is using, but is adding the closing </p>
Eventually I got it going right by changing the snippet to:
$output .= '<div id="faq'.$itemCount.'" class="switchgroup1"><p>';
Not sure if that will help anyone other than me, but I thought I should let you know. Anyway, I’m new to the whole MODx scene, just tell me to shutup if I’m banging on about nothing
Cheers
Free