Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global alignment setting not working #43

Open
GoogleCodeExporter opened this issue Sep 1, 2015 · 2 comments
Open

Global alignment setting not working #43

GoogleCodeExporter opened this issue Sep 1, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

Hi there, I do not see the attached program?

Original comment by luke@maurits.id.au on 24 Nov 2013 at 7:28

@GoogleCodeExporter
Copy link
Author

Let's try attaching again...

Original comment by and...@andrewschein.com on 24 Nov 2013 at 7:41

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant