--- tinymce.module	2008-05-09 11:43:32.000000000 -0700
+++ ../htdocs/newpj/trunk/sites/all/modules/tinymce/tinymce.module	2008-05-09 11:41:15.000000000 -0700
@@ -512,6 +512,7 @@ function tinymce_config($profile) {
   $init['convert_fonts_to_spans'] = $settings['convert_fonts_to_spans'] ? $settings['convert_fonts_to_spans'] : 'false';
   $init['remove_linebreaks'] = $settings['remove_linebreaks'] ? $settings['remove_linebreaks'] : 'true';
   $init['apply_source_formatting'] = $settings['apply_source_formatting'] ? $settings['apply_source_formatting'] : 'true';
+  $init['fix_list_elements'] = $settings['fix_list_elements'] ? $settings['fix_list_elements'] : 'true';
   $init['theme_advanced_resize_horizontal'] = 'true';
   $init['theme_advanced_resizing_use_cookie'] = 'true';
 
@@ -934,6 +935,14 @@ function tinymce_profile_form_build($edi
      '#description' => t('This option makes TinyMCE apply source formatting.  Set this to true for a cleaner HTML source.  Choose false to avoid conflicts with some filters.')
   );
 
+  $form['output']['fix_list_elements'] = array(
+     '#type' => 'select',
+     '#title' => t('Fix lists to be valid XHTML'),
+     '#default_value' => $edit->settings['fix_list_elements'],
+     '#options' => array('true' => 'true', 'false' => 'false'),
+     '#description' => t('Fixed unordered and ordered lists to be valid XHTML. Should always be true.')
+  );
+  
   $form['css'] = array(
     '#type' => 'fieldset',
     '#title' => t('CSS'),
@@ -1163,3 +1172,4 @@ function tinymce_user_get_status($user, 
   return $status;
 }
 
+
