DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:prettytables

This is an old revision of the document!


PrettyTables Plugin

Compatible with DokuWiki

"Ponder Stibbons"

plugin Toolbar button that fixes the source code of a table by aligning the columns.

Last updated on
2012-09-01
Provides
Action
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Tagged with button, tables, toolbar

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Usage

  1. Select the table you want to fix.
  2. Click on the button

To manage alignments:

  • Put min. 2 spaces in front AND after the cell value, it gets centered
  • Put less than 2 spaces in front, it gets left aligned
  • Put less than 2 spaces after the value, it gets right aligned

Bug Reporting

Please use GitHub's bug tracker or drop me an email.

Example

Original Table

^ Year ^ Location|
| 2004| Athens, Greece|
| 2008| Beijing, China|
| 2012| London, United Kingdom  |
| 2016| Rio de Janeiro, Brazil|

Fixed Table

^  Year  ^         Location         |
|  2004  |      Athens, Greece      |
|  2008  |      Beijing, China      |
|  2012  |  London, United Kingdom  |
|  2016  |  Rio de Janeiro, Brazil  |

FAQ

  • Does it keep the header cells (the ones that start with “^”) intact?
    Yes, the plugin will maintain that properly.
  • Does it support left, center, right alignments?
    Yes, thanks to janosh who added that feature!
  • Sometimes it seems to be not working. Do i have to reformatting the table manually?
plugin/prettytables.1442537621.txt.gz · Last modified: 2015-09-18 02:53 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki