Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. ------------------------------------------------------------------------ With current org-babel it is not possible to set separate html attributes for result block. Simple case: ,---- | #+begin_src ditaa :file 123.png :cache yes | ... | #+end_src | | #+results[f8f8...]: | file:123.png `---- Suppose, I want to add some html attributes to image: ,---- | #+begin_src ditaa :file 123.png :cache yes | ... | #+end_src | | #+attr_html: alt="big image" width="100%" | | #+results[f8f8...]: | file:123.png `---- But when I do C-c C-c on ditaa block, it inserts one more result block: ,---- | #+begin_src ditaa :file 123.png :cache yes | ... | #+end_src | | #+results[f8f8...]: | file:123.png | | #+attr_html: alt="big image" width="100%" | | #+results[f8f8...]: | file:123.png `---- Because org-babel does not skip #+attr_ ... lines when searching results block with `org-babel-where-is-src-block-result' function. I've added skipping every #+attr_ line between #+end_src and #+results blocks. Patch is attached.