From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathias Bauer Subject: Bug: 3 bugs and 2 proposals on ascii/html export [7.8.03] Date: Fri, 9 Mar 2012 01:53:34 +0100 Message-ID: <20120309005334.GA19970@gmx.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:32799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5o5V-00036N-Hd for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 19:53:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5o5T-0000ev-8S for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 19:53:41 -0500 Received: from mailout-de.gmx.net ([213.165.64.22]:53796) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1S5o5S-0000eh-Uw for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 19:53:39 -0500 Received: from localhost by localhost with ESMTP id 926B11A8002 for ; Fri, 9 Mar 2012 01:53:34 +0100 (CET) Received: from localhost by localhost with LMTP id X14upSLR2m8Q for ; Fri, 9 Mar 2012 01:53:34 +0100 (CET) Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi! I just played with org's export functionality and following minimal org file. This results in three minor bugs and two proposals/questions on org's behavior. -------------------- file1.org -------------------- #+STARTUP: showeverything #+OPTIONS: author:nil email:nil timestamp:nil * Some section Some text. * TODO Some section with a TODO keyword Some text. * DONE Some section with another TODO keyword Some text. * Some section with TAG at the end :some_tag: Some text. * TODO Some section with TODO keyword and TAG at the end :another_tag: Some text. --------------------------------------------------- * ASCII/Latin-1/UTF-8 export ** Bug 1: Underlining the headlines Headlines without tags are underlined in a wrong manner. It's one character too long. ** Question/Proposal As default, all level 1 headlines are underlined by - characters and level 2 headlines with =. Wouldn't it be more logical the other way round: the lower the level, the more important the headline and hence the "bigger" its underlining? (Of course the user can change the variable org-export-ascii-underline.) * HTML export ** Question/Proposal ----------snip----------

...Some section with TAG at the end    some_tag... ----------snip---------- Isn't a single space enough for separating the heading's text and the tag? Beside their number, the additional three (why not five or n?) " " seem a little bit freaky to me... To keep things even more flexible, couldn't the blank and the " " be skipped both and could the CSS "tag" class be modified instead. Unfortunately, I don't know enough of CSS yet to check if that will be possible at all. For the table of contents we will have a similar phenomenon if an additional "#+OPTIONS: tags:t" is added. The separation between text and tag in this case consists of three " " and *no* space before. ** Bug 2: Exporting the tag into the toc Adding "#+OPTIONS: tags:t" results in the following exported toc: ----------snip----------
  • ...Some section with TAG at the end    some_tag
  • ----------snip---------- There is a space inside the ... just before the tag name which should not be there. ** Bug 3: Exporting the TODO keywords ----------snip----------

    ... TODO Some section with a TODO keyword

    ----------snip---------- There is a space inside the ... just before the TODO keyword which should not be there. Could you please consider fixing these bugs. Thanks for this wonderful piece of software :-) Mathias P.S. For proving the above topics I used the proposed minimal org installation. So nothing in the following settings report has something to do with my personal configuration. But if it's the will of (org-submit-bug-report)... :-) ------------------------------------------------------------------------ Emacs : GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian Package: Org-mode version 7.8.03 current state: ============== (setq org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-metaup-hook '(org-babel-load-in-session-maybe) org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-blank-before-new-entry nil org-babel-pre-tangle-hook '(save-buffer) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] org-babel-hide-all-hashes) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks)) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-occur-hook '(org-first-headline-recenter) org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-metadown-hook '(org-babel-pop-to-session-maybe) org-export-blocks '((src org-babel-exp-src-block nil) (comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) )