From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Gauland Subject: Indentation in html tables Date: Sat, 17 Jul 2010 02:20:04 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=39045 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZx0i-0004R4-O0 for emacs-orgmode@gnu.org; Fri, 16 Jul 2010 22:20:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OZx0h-0007XN-AF for emacs-orgmode@gnu.org; Fri, 16 Jul 2010 22:20:16 -0400 Received: from lo.gmane.org ([80.91.229.12]:44752) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OZx0h-0007XA-4w for emacs-orgmode@gnu.org; Fri, 16 Jul 2010 22:20:15 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OZx0d-0004Ih-Su for emacs-orgmode@gnu.org; Sat, 17 Jul 2010 04:20:12 +0200 Received: from 114-134-6-5.rurallink.co.nz ([114.134.6.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Jul 2010 04:20:11 +0200 Received: from mikelygee by 114-134-6-5.rurallink.co.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Jul 2010 04:20:11 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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)) ?*) " ")) )))