Global alignment setting not working
- Dominant language
- Python
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
```
I am attaching a simple program that attempts to use the
p.align="r"
option as described in the online tutorial:
http://code.google.com/p/prettytable/wiki/Tutorial
(under per-column settings)
However, it looks like the global setting is ignored.
I am using prettytable 0.7.2 installed via easy_install.
The output of the program is given below:
+---------------+------------------+--------------+-------------+
| default | floatFmt1 | floatFmt2 | gFmt |
+---------------+------------------+--------------+-------------+
| 123456789.123 | 123456789.123400 | 123456789.12 | 1.23457e+08 |
| 0.000122 | 0.000122 | 0.00 | 0.000122 |
| 23 | 23.000000 | 23.00 | 23 |
| 1.01010101 | 1.010101 | 1.01 | 1.0101 |
+---------------+------------------+--------------+-------------+
+---------------+------------------+--------------+-------------+
| default | floatFmt1 | floatFmt2 | gFmt |
+---------------+------------------+--------------+-------------+
| 123456789.123 | 123456789.123400 | 123456789.12 | 1.23457e+08 |
| 0.000122 | 0.000122 | 0.00 | 0.000122 |
| 23 | 23.000000 | 23.00 | 23 |
| 1.01010101 | 1.010101 | 1.01 | 1.0101 |
+---------------+------------------+--------------+-------------+
```
Original issue reported on code.google.com by `and...@andrewschein.com` on 24 Nov 2013 at 7:21
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported program with PrettyTable 0.7.2 and compare the documented p.align="r" behavior under the tutorial's per-column settings. Trace how global alignment is applied to the rendered table; done means the setting changes the output alignment as documented without breaking the shown formatting cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100