Skip to content

Commit

Permalink
[frontend/parsable_text] set up a dynamic line length limit in docuti…
Browse files Browse the repository at this point in the history
…ls (#817)

Fix #776 : introduction of default line length limit of 10k chars in docutils 0.17
  • Loading branch information
Drumor committed May 19, 2022
1 parent da749cf commit 66ad30f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inginious/frontend/parsable_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,8 @@ def rst(cls, string, show_everything=False, translation=gettext.NullTranslations
'translation': translation,
'raw_enabled': True,
'file_insertion_enabled': False,
'math_output': 'MathJax /this/does/not/need/to/exist.js'
'math_output': 'MathJax /this/does/not/need/to/exist.js',
'line_length_limit': len(string) # Use string size to be safe.
}
if debug:
overrides['halt_level'] = 2
Expand Down

0 comments on commit 66ad30f

Please sign in to comment.