Skip to content

[Sphinx] [Automation] Make sure Issue -> PR conversion of code blocks is correct #211

@felix91gr

Description

@felix91gr

As seen in #180 and #181, the conversion of code blocks introduces (or removes, depending on the POV) some indentation from the original, resulting in blocks that were of the form:

let bits : u32 = 61;
let shifts = vec![-1, 4, 40];
    
for sh in shifts {
    println!("{bits} << {sh} = {}", bits << sh);
}

Getting translated to sphinx like so:

let bits : u32 = 61;
  let shifts = vec![-1, 4, 40];
    
  for sh in shifts {
      println!("{bits} << {sh} = {}", bits << sh);
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcontributor experienceRelated to making contributions easierhelp wantedExtra attention is neededquestionFurther information is requested

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions