Make raising and lowering not mess up table alignment
commit0618aeafb39dbf78e753348eaeaddbb7f8104cd0
authorCarsten Dominik <carsten.dominik@gmail.com>
Thu, 3 Jun 2010 08:24:04 +0000 (3 10:24 +0200)
committerCarsten Dominik <carsten.dominik@gmail.com>
Thu, 3 Jun 2010 08:24:04 +0000 (3 10:24 +0200)
tree8b54b2a556fef3a92693fa09b2c07412b2017dde
parentfd1d2992f6bdda19ebaea0761036236f21305cdc
Make raising and lowering not mess up table alignment

* lisp/org-compat.el (org-string-match-p):
(org-looking-at-p): New functions.
* lisp/org-table.el (org-table-align): Handle raised text with
invisible characters.
* lisp/org.el (org-script-display): Add raise properties for tables.
(org-raise-scripts): Handle raising differently inside tables.

Pretty display of subscripts and superscripts no longer messes up
table alignment.  This is achieved by two things:

1. Inside tables, the raised characters are not made smaller, they
   remains at the same size.  Instead they are raise/lowered more, by
   a full half character height to still be clearly readable as
   subscript or superscript.

2. The invisible characters are taken into account when computing the
   field width.
lisp/org-compat.el
lisp/org-table.el
lisp/org.el