Repository navigation
Conversation
Add _, $, &, #
| test1c_stubs = ('> stub1 %', 'stub_2') | ||
| test1c_header = ('#header 1$', 'header&2 |') | ||
| tbl_c = SimpleTable(table1c_data, test1c_header, test1c_stubs, ltx_fmt=ltx_fmt1) | ||
| def test_ltx_special_chars(self): |
There was a problem hiding this comment.
wrong indentation, unit tests on TravisCI fail
if this is because of tabs:
please use only spaces, no TABs in the code.
use editor setting where tab key adds 4 spaces
|
@tvanessa Thanks, looks good except for the indentation error on TravisCI |
|
I will check and fix the problem. Thanks. |
|
@josef-pkt Looks good for merge |
| empty='', | ||
| missing='--', | ||
| replacements={"%" : "\%", ">" : "$>$", "|" : "$|$"} | ||
| #replacements will be processed in lexicographical order |
There was a problem hiding this comment.
@tvanessa just to understand this
Is there a reason for processing in lexicographical order, and to add sorting?
or is it just to make it independent of how the list is filled?
There was a problem hiding this comment.
It looks like you added sorting to fix a unit test failure. Do you know what the problem was if the replacement sequence is arbitrary?
There was a problem hiding this comment.
$ has to be replaced first I would expect, else you end up replacing inserted $'s.
|
It looks like the middle 4 commits could be squashed, so we have 3 commits. The last commit looks informative because of the sorting, even though I haven't tried to figure out what was wrong. @tvanessa do you know how to rebase? changes itself look good to me and ready to merge |
Rebase to simplify merge closes statsmodels#2868 closes statsmodels#2862
Solve issue #2862 .
Update list "replacements" in table.py and a unit test in test_table.py.