Some time ago I tried to export in html form an org file containing many
src blocks and ended with the following message :
org-html-do-format-code: Buffer is read-only: #
After narrowing down my file here are the steps to reproduce :
emacs -q
(require 'htmlize) ;; this is important else `org-html-fontify-code`
;; will keep the wrong branch
;; open the ecm-org-src-ro.org