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.")
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@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Thanks for the info! I guess I missed that little detail. It might be worth adding that setting to the documentation.
On Feb 18, 2007, at 7:01 PM, Brad Choate wrote:
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@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate