Skip to content

Commit 27a38ca

Browse files
rddaz2013mgeier
authored andcommitted
Avoid breaks in tables
Fixes #240.
1 parent c8c4d2b commit 27a38ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/nbsphinx.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,9 @@ def decode(data):
10861086
# see issue #155
10871087
cmd += ['--eol', 'lf']
10881088
cmd1 = cmd + ['--from', fmt, '--to', 'json']
1089+
10891090
cmd2 = cmd + ['--from', 'json', '--to', to]
1091+
cmd2 += ['--columns=500'] # Avoid breaks in tables, see issue #240
10901092

10911093
p = subprocess.Popen(cmd1, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
10921094
json_data, _ = p.communicate(encode(source))

0 commit comments

Comments
 (0)