diff options
author | Tom Willemse | 2014-01-27 23:43:57 +0100 |
---|---|---|
committer | Tom Willemse | 2014-01-27 23:43:57 +0100 |
commit | 6dada9e33d0cea2f1ff351b80ab44549f400dba4 (patch) | |
tree | aa2930b36b5b52c8131dbcd8577ed1022ca01cc8 /edocs.el | |
parent | 8f4fa5d2f435a4db6fb55ada29cc61c9f49b4f82 (diff) | |
download | edocs-6dada9e33d0cea2f1ff351b80ab44549f400dba4.tar.gz edocs-6dada9e33d0cea2f1ff351b80ab44549f400dba4.zip |
Fix HTML export
Diffstat (limited to 'edocs.el')
-rw-r--r-- | edocs.el | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -213,15 +213,16 @@ parts of the module." (let ((org-export-with-toc nil) (org-export-with-section-numbers nil)) (edocs--with-tag "div" '(("class" . "container")) - (org-export-string-as - (replace-regexp-in-string - "`\\([^']+\\)'" - (lambda (match) - (if (member (substring match 1 -1) known-symbols) - "@@html:<a href=\"#\\1\"><code>@@\\1@@html:</code></a>@@" - "~\\1~")) - txt) - 'html t)))) + (insert + (org-export-string-as + (replace-regexp-in-string + "`\\([^']+\\)'" + (lambda (match) + (if (member (substring match 1 -1) known-symbols) + "@@html:<a href=\"#\\1\"><code>@@\\1@@html:</code></a>@@" + "~\\1~")) + txt) + 'html t))))) (defmethod edocs--export-format-text ((exporter edocs-ascii-exporter) txt known-symbols) @@ -352,7 +353,7 @@ into a buffer called `*edocs*' and switches to that buffer." (edocs--export-insert-title exporter (edocs--module-name binfo) (edocs--module-summary binfo)) - (insert (edocs--format-commentary exporter commentary symbols)) + (edocs--format-commentary exporter commentary symbols) (edocs--export-insert-header exporter 2 "API") (mapc (lambda (spec) (edocs--format-symbol exporter spec symbols)) symbol-specs) |