Carsten Dominik writes: > Hi Sebastion, sorry for being hard to satisfy on this one. > > What I mean is this: > > The location where your patck kicks in looks like this: > > .... > (org-export-html-close-lists-maybe line) > > ;; Protected HTML > (when (get-text-property 0 'org-protected line) > (let (par (ind (get-text-property 0 'original-indentation line))) > (when (re-search-backward > "\\(

\\)\\([ \t\r\n]*\\)\\=" (- (point) 100) t) > (setq par (match-string 1)) > (replace-match "\\2\n")) > (insert line "\n") > > So before we are looking at protected stuff, there is already a call to > org-export-html-close-lists-maybe. It seems to me that what you are trying to > do > could just happen inside that function. The function checks for a text property > 'original-indentation to check for special stuff that was indented - > but apparently that does not cover your case. So in that function you could > also look at the protected property and act accordingly. > > Does that make sense? Ah, now I got you here! You're feeling for the code is all to good :) I could indeed remove more than half of the lines. So here comes the next generation: