]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/bugs/img_plugin_renders___60__img__62___tag_without_src_attribute_post-2.20.mdwn
rm
[ikiwiki.git] / doc / bugs / img_plugin_renders___60__img__62___tag_without_src_attribute_post-2.20.mdwn
index c59491314702729804b56ea5d146e60dd819bb04..6b861c39772cb76045e07929345f9a0b510c4b2a 100644 (file)
@@ -4,3 +4,33 @@ I upgraded from 2.18 to 2.32.3 and my \[[img]] links became `<img>` tags without
 > current version of ikiwiki: <http://kitenet.net/~joey/pics/debconf/7/>
 > Feel free to mail me a recipe to reproduce it.
 > --[[Joey]]
+
+I've done some research and found that `$imgtag` seems properly created in `img.pm`:`preprocess`. Thus, something must be changing it later. Disabling all plugins and leaving only `img` enabled does not fix the problem.
+
+I added `print STDERR "$imgtag\n";` to `img.pm` after the `my $imgtag='<img src="'.$imgurl.`... statement. This is what happens:
+
+    seamus:~/web/madduck.net/wc> ikiwiki --setup ../ikiwiki.setup --render blog/2008.02.17:the-penny-martin-adventure-phase-2.mdwn | grep img
+    <img src="../img/2008.02.17:chairs_on_the_beach.jpg" alt="Chilling
+      at the beach with chairs" width="301" height="200" class="center" />
+    <img src="../img/2008.02.17:gates_of_haast.jpg" alt="The Gates of Haast" width="487" height="150" class="center" />
+    <img src="../img/2008.02.17:camping_in_cascade_valley.jpg" alt="Camping in Cascade Valley" width="526" height="140" class="center" />
+    <img src="../img/2008.02.17:monteith_keg_urinal.jpg" alt="Keg
+      urinals at Monteith's brewery in Greymouth" width="87" height="150" class="float-right" />
+    <img src="../img/2008.02.17:pancake_rocks_and_nikau_loving.jpg" alt="Pancake rocks
+      at Punakaiki, and Penny loving a Nikau tree" width="582" height="150" class="center" />
+    <img src="../img/2008.02.17:phoenix_foundation_in_concert.jpg" alt="The Phoenix
+      Foundation in concert in Wellington" width="565" height="150" class="center" />
+    <p><a><img alt="Chilling
+    <p><a><img alt="The Gates of Haast" width="487" height="150" class="center" /></a></p>
+    <p><a><img alt="Camping in Cascade Valley" width="526" height="140" class="center" /></a></p>
+    <p><a><img alt="Keg
+    <p><a><img alt="Pancake rocks
+    <p><a><img alt="The Phoenix
+
+Something is eating the src= attribute.
+
+I have been unable to reproduce this outside of the `madduck.net` website...
+
+**Update**: this is the same bug as [[the_colon-in-links_bug|No_link_for_blog_items_when_filename_contains_a_colon]]
+
+[[!tag done]]