Skip to content

Sphinx, unlike Docutils, incorrectly renders consecutive backslashes #7610

Closed

Description

@liborjelinek

Describe the bug
Sphinx incorrectly renders four or more consecutive backslashes. In pure Docutils, they are renderer properly according with RST spec.

To Reproduce
The following snippet demonstrantes buggy rendering.

Two \\

Three \\\

Four \\\\

Five \\\\\

Six \\\\\\

Expected behavior
Two backslashes should be rendered as \. Three still as \. Four and five as \\. Six as \\\ and so on. This is how it works in Docutils.

Screenshots
image

Environment info

  • OS: Linux
  • Python version: 3.6
  • Sphinx version: 3.0.2
  • Sphinx extensions: none

Activity

  1. tk0miya commented on May 5, 2020

    @tk0miya
    Member

    Thank you for filing. I'll investigate it from now on.

  2. added this to the 3.1.0 milestone on May 5, 2020
  3. added 6 commits that reference this issue on May 5, 2020
    c993ef6
    fefa90b
    d52db24
    d9e0251
    d56a31e
    71b6537
  4. added a commit that references this issue on May 7, 2020
    62711bc
  5. locked as resolved and limited conversation to collaborators on Jul 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions