From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Bug: Table alignment [8.2.10 (release_8.2.10 @ /usr/local/src/emacs/lisp/org/)] Date: Wed, 06 May 2015 12:56:44 +0200 Message-ID: <87egmuc6tv.fsf@gmx.us> References: <87k2wp11v4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ypx0b-0000Vt-8x for emacs-orgmode@gnu.org; Wed, 06 May 2015 06:56:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ypx0X-0002vM-3o for emacs-orgmode@gnu.org; Wed, 06 May 2015 06:56:57 -0400 Received: from plane.gmane.org ([80.91.229.3]:51789) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ypx0W-0002vD-Sw for emacs-orgmode@gnu.org; Wed, 06 May 2015 06:56:53 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ypx0U-0000hj-SL for emacs-orgmode@gnu.org; Wed, 06 May 2015 12:56:50 +0200 Received: from 46.166.188.235 ([46.166.188.235]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 May 2015 12:56:50 +0200 Received: from rasmus by 46.166.188.235 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 May 2015 12:56:50 +0200 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 Jay Belanger writes: > When I looked at the resulting html, it looked fine: > Math Department > But then I checked the css code, which is given by the value of > `org-html-style-default' in ox-html.el: > > 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; } Indeed that looks weird. It seems to be a stylistic hack to have *headers* always centered. I have no clue why. > (It's this way in emacs 24.5 and the latest development version of emacs.) > Easy to change locally, but am I missing something, or should > `org-html-style-default' have > > th.right { text-align: right; } > th.left { text-align: left; } > th.center { text-align: center; } > td.right { text-align: right; } > td.left { text-align: left; } > td.center { text-align: center; } I guess it should, but I don't know the rational for the always-centering of headers. . . If we imposed that change headlines of tables with no instructions would no longer be centered as they default to the "left" class. This could be an issue if this is a good default style... —Rasmus -- With monopolies the cake is a lie!