
Empty block HTML disappearing
Reported by Tom | October 2nd, 2008 @ 08:57 AM | in 4.0.4
I'm having an issue with HTML embed code in Redcloth 4.0.3.
The following embed code is part of some textile that is being rendered with the this command:
output = RedCloth.new(text, [:no_span_caps]).to_html(:textile)
<embed src="http://demo.assetbank.co.uk/assetbank-standard/tools/flow-player/FlowPlayerLight.swf?config=%7Bembedded%3Atrue%2CbaseURL%3A%27http://demo.assetbank.co.uk/assetbank-standard/tools/flow-player%27%2CshowFullScreenButton%3Afalse%2CshowMenu%3Atrue%2CcontrolsAreaBorderColor%3A14540253%2CautoPlay%3Afalse%2Cloop%3Afalse%2CnoVideoClip%3A%27%2E%2E%2F%2E%2E%2Fimages%2Fstandard%2Fmisc%2Fno%2Dvideo%2Egif%27%2CautoBuffering%3Atrue%2CautoRewind%3Atrue%2CallowResize%3Afalse%2CshowStopButton%3Atrue%2CinitialScale%3A%27scale%27%2CvideoFile%3A%27http://demo.assetbank.co.uk/assetbank-standard/images/assets/501-600/590/knight-p1.flv%27%7D" width="320" height="268" scale="scale" bgcolor="111111" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" allowNetworking="all" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
This code is disappears completely, with no trace of it in the output. However, if I paste it on the same line as some other text, or with text inside the embed tag, it outputs correctly.
This is embed code <embed src="http://demo.assetbank.co.uk/assetbank-standard/tools/flow-player/FlowPlayerLight.swf?config=%7Bembedded%3Atrue%2CbaseURL%3A%27http://demo.assetbank.co.uk/assetbank-standard/tools/flow-player%27%2CshowFullScreenButton%3Afalse%2CshowMenu%3Atrue%2CcontrolsAreaBorderColor%3A14540253%2CautoPlay%3Afalse%2Cloop%3Afalse%2CnoVideoClip%3A%27%2E%2E%2F%2E%2E%2Fimages%2Fstandard%2Fmisc%2Fno%2Dvideo%2Egif%27%2CautoBuffering%3Atrue%2CautoRewind%3Atrue%2CallowResize%3Afalse%2CshowStopButton%3Atrue%2CinitialScale%3A%27scale%27%2CvideoFile%3A%27http://demo.assetbank.co.uk/assetbank-standard/images/assets/501-600/590/knight-p1.flv%27%7D" width="320" height="268" scale="scale" bgcolor="111111" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" allowNetworking="all" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
or
<embed src="http://demo.assetbank.co.uk/assetbank-standard/tools/flow-player/FlowPlayerLight.swf?config=%7Bembedded%3Atrue%2CbaseURL%3A%27http://demo.assetbank.co.uk/assetbank-standard/tools/flow-player%27%2CshowFullScreenButton%3Afalse%2CshowMenu%3Atrue%2CcontrolsAreaBorderColor%3A14540253%2CautoPlay%3Afalse%2Cloop%3Afalse%2CnoVideoClip%3A%27%2E%2E%2F%2E%2E%2Fimages%2Fstandard%2Fmisc%2Fno%2Dvideo%2Egif%27%2CautoBuffering%3Atrue%2CautoRewind%3Atrue%2CallowResize%3Afalse%2CshowStopButton%3Atrue%2CinitialScale%3A%27scale%27%2CvideoFile%3A%27http://demo.assetbank.co.uk/assetbank-standard/images/assets/501-600/590/knight-p1.flv%27%7D" width="320" height="268" scale="scale" bgcolor="111111" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" allowNetworking="all" pluginspage="http://www.macromedia.com/go/getflashplayer">i am inside embed code</embed>
The above both render correctly, so I presume this is a bug with Textile?
Comments and changes to this ticket
-
Jason Garber October 2nd, 2008 @ 09:53 AM
- Title changed from HTML embed code disappearing to Empty block HTML disappearing
- State changed from new to open
- Milestone set to 4.0.4
- Tag changed from embed, html to html
The minimum needed to show a problem is
<embed></embed>
Going to fix quick and include in 4.0.4.
-
Jason Garber October 2nd, 2008 @ 10:36 AM
- State changed from open to resolved
(from [ef86e86c3dec75e41ef432e4be5b12a118bc968e]) Fixed empty block HTML disappearing. [#64 state:resolved] http://github.com/jgarber/redclo...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
RedCloth is a Ruby library for converting Textile into HTML
People watching this ticket
Tags
Referenced by
-
64 Empty block HTML disappearing (from [ef86e86c3dec75e41ef432e4be5b12a118bc968e]) Fixed e...