diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index c55be1299..945ddd4d0 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -38,7 +38,6 @@
(require 'format-spec)
(eval-when-compile (require 'cl) (require 'table))
-
;;; Function Declarations
@@ -47,7 +46,6 @@
(declare-function org-pop-to-buffer-same-window
"org-compat" (&optional buffer-or-name norecord label))
-
;;; Define Back-End
(org-export-define-backend html
@@ -129,7 +127,6 @@
;; Leave room for "ox-infojs.el" extension.
(:infojs-opt "INFOJS_OPT" nil nil)))
-
;;; Internal Variables
@@ -205,6 +202,7 @@ for the JavaScript code in this tag.
.right { margin-left: auto; margin-right: 0px; text-align: right; }
.left { margin-left: 0px; margin-right: auto; text-align: left; }
.center { margin-left: auto; margin-right: auto; text-align: center; }
+ .underline { text-decoration: underline; }
#content { margin: 3em; }
#postamble p, a { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
@@ -241,21 +239,23 @@ for the JavaScript code in this tag.
table { border-collapse:collapse; }
td, th { vertical-align:top; }
- th.right { text-align:center; }
- th.left { text-align:center; }
- th.center { text-align:center; }
- td.right { text-align:right; }
- td.left { text-align:left; }
- td.center { text-align:center; }
+ th.right { text-align: center; }
+ th.left { text-align: center; }
+ th.center { text-align: center; }
+ td.right { text-align: right; }
+ td.left { text-align: left; }
+ td.center { text-align: center; }
dt { font-weight: bold; }
- div.figure { padding:1em; }
- div.figure p { text-align:center; }
- div.inlinetask {
- padding:10px;
- border:2px solid gray;
- margin:10px;
+ .figure { padding: 1em; }
+ .figure p { text-align: center; }
+ .inlinetask {
+ padding: 10px;
+ border: 2px solid gray;
+ margin: 10px;
background: #ffffcc;
}
+ #org-div-home-and-up
+ { text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x:auto; }
.linenr { font-size:smaller }
.code-highlighted { background-color:#ffff00; }
@@ -271,7 +271,6 @@ You can use `org-html-head' and `org-html-head-extra' to add to
this style. If you don't want to include this default style,
customize `org-html-head-include-default-style'.")
-
;;; User Configuration Variables
@@ -280,7 +279,6 @@ customize `org-html-head-include-default-style'.")
:tag "Org Export HTML"
:group 'org-export)
-
;;;; Handle infojs
(defvar org-html-infojs-opts-table
@@ -486,7 +484,6 @@ export back-end currently used."
;; Return the modified property list.
exp-plist)))
-
;;;; Bold, etc.
(defcustom org-html-text-markup-alist
@@ -494,7 +491,7 @@ export back-end currently used."
(code . "%s
")
(italic . "%s")
(strike-through . "%s")
- (underline . "%s")
+ (underline . "%s")
(verbatim . "%s
"))
"Alist of HTML expressions to convert text markup.
@@ -536,7 +533,6 @@ in order to mimic default behaviour:
:group 'org-export-html
:type 'function)
-
;;;; Footnotes
(defcustom org-html-footnotes-section "
\n%s" (org-html-format-code example-block info)))) - ;;;; Export Snippet (defun org-html-export-snippet (export-snippet contents info) @@ -2016,7 +1984,6 @@ information." (when (eq (org-export-snippet-backend export-snippet) 'html) (org-element-property :value export-snippet))) - ;;;; Export Block (defun org-html-export-block (export-block contents info) @@ -2025,7 +1992,6 @@ CONTENTS is nil. INFO is a plist holding contextual information." (when (string= (org-element-property :type export-block) "HTML") (org-remove-indentation (org-element-property :value export-block)))) - ;;;; Fixed Width (defun org-html-fixed-width (fixed-width contents info) @@ -2036,7 +2002,6 @@ CONTENTS is nil. INFO is a plist holding contextual information." (org-remove-indentation (org-element-property :value fixed-width))))) - ;;;; Footnote Reference (defun org-html-footnote-reference (footnote-reference contents info) @@ -2062,7 +2027,6 @@ CONTENTS is nil. INFO is a plist holding contextual information." (org-export-get-footnote-number footnote-reference info) "IGNORED" 1))))) - ;;;; Headline (defun org-html-format-headline--wrap @@ -2183,7 +2147,6 @@ holding contextual information." contents) contents))))))) - ;;;; Horizontal Rule (defun org-html-horizontal-rule (horizontal-rule contents info) @@ -2191,7 +2154,6 @@ holding contextual information." CONTENTS is nil. INFO is a plist holding contextual information." "
\n%s
%s" extra contents after))))) - ;;;; Plain List ;; FIXME Maybe arg1 is not needed because\n%s" contents)) - ;;;; Quote Section (defun org-html-quote-section (quote-section contents info) @@ -2800,7 +2749,6 @@ CONTENTS is nil. INFO is a plist holding contextual information." (org-element-property :value quote-section)))) (when value (format "
\n%s" value)))) - ;;;; Section (defun org-html-section (section contents info) @@ -2833,7 +2781,6 @@ contextual information." (org-element-property :value radio-target)))) (org-html--anchor id text))) - ;;;; Special Block (defun org-html-special-block (special-block contents info) @@ -2844,7 +2791,6 @@ holding contextual information." (downcase (org-element-property :type special-block)) contents)) - ;;;; Src Block (defun org-html-src-block (src-block contents info) @@ -2868,7 +2814,6 @@ contextual information." (org-export-data caption info))) (format "\n
%s" lang label code)))))) - ;;;; Statistics Cookie (defun org-html-statistics-cookie (statistics-cookie contents info) @@ -2877,7 +2822,6 @@ CONTENTS is nil. INFO is a plist holding contextual information." (let ((cookie-value (org-element-property :value statistics-cookie))) (format "
%s
" cookie-value)))
-
;;;; Strike-Through
(defun org-html-strike-through (strike-through contents info)
@@ -2887,7 +2831,6 @@ holding contextual information."
(format (or (cdr (assq 'strike-through org-html-text-markup-alist)) "%s")
contents))
-
;;;; Subscript
(defun org-html-subscript (subscript contents info)
@@ -2896,7 +2839,6 @@ CONTENTS is the contents of the object. INFO is a plist holding
contextual information."
(format "%s" contents))
-
;;;; Superscript
(defun org-html-superscript (superscript contents info)
@@ -2905,7 +2847,6 @@ CONTENTS is the contents of the object. INFO is a plist holding
contextual information."
(format "%s" contents))
-
;;;; Tabel Cell
(defun org-html-table-cell (table-cell contents info)
@@ -2934,7 +2875,6 @@ channel."
(t (concat "\n" (format (car org-html-table-data-tags) cell-attrs)
contents (cdr org-html-table-data-tags))))))
-
;;;; Table Row
(defun org-html-table-row (table-row contents info)
@@ -2969,7 +2909,6 @@ communication channel."
(when (org-export-table-row-ends-rowgroup-p table-row info)
(cdr rowgroup-tags))))))
-
;;;; Table
(defun org-html-table-first-row-data-cells (table info)
@@ -3057,7 +2996,6 @@ contextual information."
(funcall table-column-specs table info)
contents)))))
-
;;;; Target
(defun org-html-target (target contents info)
@@ -3068,7 +3006,6 @@ information."
(org-element-property :value target))))
(org-html--anchor id)))
-
;;;; Timestamp
(defun org-html-timestamp (timestamp contents info)
@@ -3080,7 +3017,6 @@ information."
(format " "
(replace-regexp-in-string "--" "–" value))))
-
;;;; Underline
(defun org-html-underline (underline contents info)
@@ -3090,7 +3026,6 @@ holding contextual information."
(format (or (cdr (assq 'underline org-html-text-markup-alist)) "%s")
contents))
-
;;;; Verbatim
(defun org-html-verbatim (verbatim contents info)
@@ -3100,7 +3035,6 @@ information."
(format (or (cdr (assq 'verbatim org-html-text-markup-alist)) "%s")
(org-html-plain-text (org-element-property :value verbatim) info)))
-
;;;; Verse Block
(defun org-html-verse-block (verse-block contents info)
@@ -3122,7 +3056,6 @@ contextual information."
(setq contents (replace-match ws nil t contents))))
(format "\n%s
" contents)) - ;;; Filter Functions @@ -3136,7 +3069,6 @@ Prettifying happens if `org-html-pretty-output' is t." (indent-region (point-min) (point-max)) (buffer-substring-no-properties (point-min) (point-max))))) - ;;; End-user functions @@ -3245,7 +3177,6 @@ publishing directory. Return output file name." (org-publish-org-to 'html filename ".html" plist pub-dir)) - ;;; FIXME