[TxMt] Blogging.tmbundle image_upload
Brad Choate
bchoate at gmail.com
Mon Feb 19 00:01:45 UTC 2007
But that's what the "TM_XHTML" environment variable is used for. Set
that to "/" if you want XHTML-style br, img tags. Google "tm_xhtml"
if you want more background/context.
-Brad
On Feb 18, 2007, at 3:53 PM, Swift Fish wrote:
> The blogging bundle image_upload method creates a tag that doesn't
> validate. It is missing a slash before the closing bracket.
>
> The diff with http://macromates.com/svn/Bundles/trunk/Bundles/
> Blogging.tmbundle/Support/lib/blogging.rb is:
>
> --- - 2007-02-18 18:45:49.000000000 -0500
> +++ /dev/fd/63 2007-02-18 18:45:49.000000000 -0500
> @@ -719,7 +719,7 @@
> height_width = %Q{ height="#{height}" width="#
> {width}"}
> end
> end
> - print %Q{<img src="#{url}" alt="${1:#
> {CGI::escapeHTML alt}}"#{height_width}#{ENV['TM_XHTML']}>}
> + print %Q{<img src="#{url}" alt="${1:#
> {CGI::escapeHTML alt}}"#{height_width}#{ENV['TM_XHTML']}/>}
> end
> else
> TextMate.exit_show_tool_tip("Error uploading image.")
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
More information about the textmate
mailing list