• 
      

    Default to no indentation for the json templatetag.

    Review Request #4605 — Created Sept. 20, 2013 and submitted

    Information

    Djblets
    master

    Reviewers

    Default to no indentation for the json templatetag.

    The json_dumps templatetag has an "indent" parameter, which defaulted to '0'.
    This caused the generated output to include newlines, but indent things zero
    spaces. If we default this to None, it will skip all extraneous whitespace.

    Used this in a future change, and saw that it now dumped my big data blob onto
    a single line in the output rather than formatting it super ugly.

    reviewbot
    1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
      djblets/util/templatetags/djblets_js.py
      Ignored Files:

    2. 
        
    reviewbot
    1. This is a review from Review Bot.
      Tool: Pyflakes
      Processed Files:
      djblets/util/templatetags/djblets_js.py
      Ignored Files:

    2. 
        
    chipx86
    1. Ship It!

    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:

    Pushed to master (7681c2c).