diff options
Diffstat (limited to 'sphinx/directives/code.py')
-rw-r--r-- | sphinx/directives/code.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py index 5859f359a..2d3c87be9 100644 --- a/sphinx/directives/code.py +++ b/sphinx/directives/code.py @@ -58,7 +58,7 @@ class Highlight(SphinxDirective): def dedent_lines(lines: List[str], dedent: int, location: Tuple[str, int] = None) -> List[str]: if dedent is None: - return textwrap.dedent(''.join(lines)).splitlines(True) + return textwrap.dedent('\n'.join(lines)).split('\n') if any(s[:dedent].strip() for s in lines): logger.warning(__('non-whitespace stripped by dedent'), location=location) |