ox-ascii: Implement "justifyright" and "justifyleft" blocks
commita7b7c3de2b2a563cd20dfa17c891c3b1a7f2c21f
authorNicolas Goaziou <n.goaziou@gmail.com>
Wed, 21 May 2014 21:37:00 +0000 (21 23:37 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Thu, 22 May 2014 11:50:01 +0000 (22 13:50 +0200)
tree2773d3e7772c7d0e2f427a5324bb74685e3e1d27
parent9a6234ff81db52465c2b3ec87a658bbcf856747b
ox-ascii: Implement "justifyright" and "justifyleft" blocks

* lisp/ox-ascii.el
(org-ascii--justify-lines): New function.  Renamed from
`org-ascii--justify-string'.
(org-ascii--justify-element, org-ascii--current-justification): New
functions.
(org-ascii-verse-block, org-ascii-table-cell, org-ascii-table
  org-ascii-src-block, org-ascii-property-drawer, org-ascii-planning,
  org-ascii-paragraph, org-ascii-paragraph,
  org-ascii-latex-environment, org-ascii-keyword,
  org-ascii-horizontal-rule, org-ascii-fixed-width,
  org-ascii-export-block, org-ascii-example-block, org-ascii-clock,
  org-ascii-template--document-title,
  org-ascii-template--document-title): Use new functions.
(org-ascii-center-block): Do not process contents anymore since they
are already justified.

* doc/org.texi (ASCII/Latin-1/UTF-8 export): Document new feature.
  Also document `org-ascii-text-width' since this is closely related.

This patches also fixes centering of tables.
doc/org.texi
lisp/ox-ascii.el