2013-11-25, 08:15 PM
As I cannot login to redmine I post my issue here:
If you put two images in one line (using mycode) the mycode_parse_img_callback1 function adds a newline to the output, resulting in a <br> tag in the html code.
E.g.: (no line break between the img tags!)
Only the mycode_parse_img_callback1 function adds the newline, the other versions don't do that.
My quick fix, not tested that much yet:
A user land workaround would be to force one of the other callback functions like this:
[img align=lef]http://www.opt-community.de/Forum/images/cc/avatare/xavatar_mnt.png.pagespeed.ic.9QWXjXAwoS.png[/img]
If you put two images in one line (using mycode) the mycode_parse_img_callback1 function adds a newline to the output, resulting in a <br> tag in the html code.
E.g.: (no line break between the img tags!)
[img]http://www.opt-community.de/Forum/images/cc/avatare/xavatar_mnt.png.pagespeed.ic.9QWXjXAwoS.png[/img][img]http://www.opt-community.de/Forum/images/cc/avatare/xavatar_mnt.png.pagespeed.ic.9QWXjXAwoS.png[/img]
Only the mycode_parse_img_callback1 function adds the newline, the other versions don't do that.
My quick fix, not tested that much yet:
function mycode_parse_img_callback1($matches)
{
#return $this->mycode_parse_img($matches[2])."\n";
return $this->mycode_parse_img($matches[2]);
}
A user land workaround would be to force one of the other callback functions like this:
[img align=xyz]http://www.opt-community.de/Forum/images/cc/avatare/xavatar_mnt.png.pagespeed.ic.9QWXjXAwoS.png[/img][img]http://www.opt-community.de/Forum/images/cc/avatare/xavatar_mnt.png.pagespeed.ic.9QWXjXAwoS.png[/img]
[img align=lef]http://www.opt-community.de/Forum/images/cc/avatare/xavatar_mnt.png.pagespeed.ic.9QWXjXAwoS.png[/img]