]> source.dussan.org Git - redmine.git/commitdiff
Merged r15442 (#22898).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 4 Jun 2016 09:56:44 +0000 (09:56 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 4 Jun 2016 09:56:44 +0000 (09:56 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@15444 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redcloth3.rb
test/unit/helpers/application_helper_test.rb

index b96ee7ab05e73f47227cf15a359c6c9f82fe146d..31051fa96291faac8c44916f64cbab10a691a7af 100644 (file)
@@ -973,7 +973,7 @@ class RedCloth3 < String
                 if stln == "<p>"
                     out = "<p style=\"float:#{ algn }\">#{ out }"
                 else
-                    out = "#{ stln }<div style=\"float:#{ algn }\">#{ out }</div>"
+                    out = "#{ stln }<span style=\"float:#{ algn }\">#{ out }</span>"
                 end
             else
                 out = stln + out
index 35a9b8ce2b76c0883fdf1028d72b0d396130ef99..89af800be30030fd2914d50864be6a3b3a5926a8 100644 (file)
@@ -116,7 +116,7 @@ class ApplicationHelperTest < ActionView::TestCase
   def test_inline_images
     to_test = {
       '!http://foo.bar/image.jpg!' => '<img src="http://foo.bar/image.jpg" alt="" />',
-      'floating !>http://foo.bar/image.jpg!' => 'floating <div style="float:right"><img src="http://foo.bar/image.jpg" alt="" /></div>',
+      'floating !>http://foo.bar/image.jpg!' => 'floating <span style="float:right"><img src="http://foo.bar/image.jpg" alt="" /></span>',
       'with class !(some-class)http://foo.bar/image.jpg!' => 'with class <img src="http://foo.bar/image.jpg" class="some-class" alt="" />',
       'with style !{width:100px;height:100px}http://foo.bar/image.jpg!' => 'with style <img src="http://foo.bar/image.jpg" style="width:100px;height:100px;" alt="" />',
       'with title !http://foo.bar/image.jpg(This is a title)!' => 'with title <img src="http://foo.bar/image.jpg" title="This is a title" alt="This is a title" />',