From mboxrd@z Thu Jan 1 00:00:00 1970
From: Kaushal Modi ..
" str1)) (has-summary (not (string= str1 str2)))) (unless has-summary (setq str2 (concat "
" str1))) str2)) ;; Insert the "open" attribute only if user has ":open t" in ;; "#+attr_html". (when (org-string-nw-p attr-str) (when (string-match "\\(?1:open\\(?2:=\"\\(?3:t\\)\"\\)\\)" attr-str) (if (match-string 3 attr-str) ;if attr-str contains `open="t"' (setq attr-str (replace-match "" nil nil attr-str 2)) (setq attr-str (replace-match "" nil nil attr-str 1)))))) -- Kaushal Modi --00000000000049a18c056d0a67ae Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: base64 PGRpdiBkaXI9Imx0ciI+PGRpdj5IaSBBYXJvbiw8L2Rpdj48ZGl2Pjxicj48L2Rpdj48ZGl2Pkkg cmVhbGx5IGFwcHJlY2lhdGUgeW91ciBmZWVkYmFjay4gVGhhdCBoZWxwZWQgZmluZS10dW5lIG15 IGltcGxlbWVudGF0aW9uIG9mIGRldGFpbHMvc3VtbWFyeS48L2Rpdj48ZGl2Pjxicj48L2Rpdj48 ZGl2Pkkgbm93IG1vdmVkIHRoYXQgY29kZSB0byB0aGUgb3gtYmxhY2tmcmlkYXkgbGlicmFyeSB3 aGVuIEkgaGF2ZSB0aGlzIGluIG9yZy1ibGFja2ZyaWRheS1zcGVjaWFsLWJsb2NrOjwvZGl2Pjxk aXY+PGJyPjwvZGl2PjxkaXY+SXQmIzM5O3MgYmFzaWNhbGx5IFFPTCBjb2RlOjwvZGl2PjxkaXY+ PGJyPjwvZGl2PjxkaXY+MS4gV3JhcHMgdGhlICZxdW90O2RldGFpbHMmcXVvdDsgcG9ydGlvbiBp biAmcXVvdDsmbHQ7cCBjbGFzcz0mcXVvdDtkZXRhaWxzJnF1b3Q7Jmd0OyAuLiAmbHQ7L3AmZ3Q7 JnF1b3Q7LjwvZGl2PjxkaXY+Mi4gQWNjZXB0cyBvbmx5ICZxdW90OzpvcGVuIHQmcXVvdDsgYXMg YSAmcXVvdDt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