Hi, I'm using Moodle 1.6 beta5. I created a new directory resource, with a summary containing an image. Suprising, when I access the resource before the image in the summary there is an extra breakline! In fact, there was added a <br/> tag, before the <img.../> one. And, I checked that this tag is not present in HTML Editing, nor in database text entry.
I checked that this indesidered (at least to me) <br/> tag is added when calling this line of code (in page /mod/resource/type/directory/resource.class.php):
print_simple_box(format_text($resource->summary, FORMAT_MOODLE, $formatoptions, $course->id), "center");
And the <br/> disappear changing FORMAT_MOODLE to FORMAT_HTML; could anyone say me what are the difference between FORMAT_MOODLE and FORMAT_HTML? Can I simply change it? But, generally I prefer to not change manually code, if this can be useful to other I'll submit it in bug tracker.