Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Mike Gauland <mikelygee <at> gmail.com>
Subject: Indentation in html tables
Newsgroups: gmane.emacs.orgmode
Date: Saturday 17th July 2010 02:20:04 UTC (over 6 years ago)
I frequently use a columnview dynamic block to create a table (generally a
task
list, with effort estimates and notes). I export these to HTML, so they
look
pretty for my Emacsphobic colleagues.  I've noticed that when my table
includes
nested levels, sometimes the level is indicated in the HTML with *'s, and
other
times a  of invisible x's is used instead.  I haven't had any luck
trying
to figure out why this happens, or what I'm doing differently to get one or
the
other. Can anyone explain this?

I prefer to use padding for indentation, since some of my headings get
wrapped
to several lines. Padding prevents the second and subsequent lines from
starting
at the left edge, making the structure of the table clearer.  For those who
share this preference, I present the following from my .emacs. When
exporting a
table to HTML, it replaces invisible x's with *'s, and converts *'s to a
padding
directive:

(add-hook 'org-export-html-final-hook
          (lambda ()
            (goto-char (point-min))
            (while (re-search-forward "
\\(\\*+\\) " nil t) (replace-match (format "" (- (length (match-string 1)) 1))) ))) (add-hook 'org-export-html-final-hook (lambda () (goto-char (point-min)) (while (re-search-forward "\\(\\x+\\)" nil t) (replace-match (concat (make-string (length (match-string 1)) ?*) " ")) ))) _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. [email protected] http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 
CD: 2ms