--- img_assist.module Wed May 17 13:33:42 2006 +++ img_assist.module.mod Wed May 17 13:33:30 2006 @@ -300,6 +300,12 @@ function img_assist_settings() { '#options' => array('filtertag' => t('Filter Tag'), 'html' => t('HTML Code')), '#description' => t('The link behavior can be overriden when inserting images by users with the proper permissions, but these defaults will still be used for everyone else.'), ); + $form['properties']['img_assist_use_br'] = array( + '#type' => 'checkbox', + '#title' => t('Enable the ') . '<br class="clear"/> ' . t('functionality'), + '#default_value' => variable_get('img_assist_use_br', 1), + '#description' => t('see') . ' http://drupal.org/node/62472' + ); // Image Settings $form['display'] = array( @@ -343,7 +349,8 @@ function img_assist_filter($op, $delta = function theme_img_assist_filter($text) { // the br tag added to the end of each node is usually necessary for // clearing the floating properties of the inline images - return $text . "
"; + $filter = (variable_get('img_assist_use_br', 1)) ? ("
") : (""); + return $text . $filter; } /** @@ -1648,4 +1655,4 @@ function theme_img_assist_legacy() { return "
\n \"%alt\"\n
%caption
\n
"; } -?> \ No newline at end of file +?>