emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Bug: Table alignment [8.2.10 (release_8.2.10 @ /usr/local/src/em


From: Rasmus
Subject: Re: [O] 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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Jay Belanger <address@hidden> writes:

> When I looked at the resulting html, it looked fine:
>     <th scope="col" class="left">Math Department</th>
> 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!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]