• 
      

    Fix handling of 'start' parameter for markdown lists.

    Review Request #6761 — Created Jan. 12, 2015 and submitted

    Information

    Review Board
    release-2.0.x
    4ac55ca...

    Reviewers

    If a list starts at something other than '1', we'd fail, treating a Node.Attr
    instance as if it were an int. This change fixes the types to actually fetch
    the correct value.

    • Set up a markdown list starting at '2' and saw that it no longer failed.
    • Ran unit tests.
    Description From Last Updated

    Can start be None? Wouldn't it default to 1? The if start will probably do the wrong thing if trying …

    chipx86chipx86

    "Markdown"

    chipx86chipx86
    reviewbot
    1. Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/reviews/markdown_utils.py
      
      
      
      Tool: Pyflakes
      Processed Files:
          reviewboard/reviews/markdown_utils.py
      
      
    2. 
        
    chipx86
    1. Can we add unit tests for the different conditions here?

    2. reviewboard/reviews/markdown_utils.py (Diff revision 1)
       
       
       
      Show all issues

      Can start be None? Wouldn't it default to 1?

      The if start will probably do the wrong thing if trying to begin a list at 0.

      1. I flubbed the diff a little bit here. It was wound up with another change and I forgot to remove the default.

    3. 
        
    david
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/reviews/markdown_utils.py
          reviewboard/reviews/tests.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/reviews/markdown_utils.py
          reviewboard/reviews/tests.py
      
      
    2. 
        
    chipx86
    1. 
        
    2. reviewboard/reviews/tests.py (Diff revision 2)
       
       
      Show all issues

      "Markdown"

    3. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-2.0.x (4f11579)