Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Aug 5, 2014
  1. Merge pull request #15 from rubik/master

    authored
    Split core functionality and main function so that `setup.py` can import `__version__`
    
    Amazing, thanks!
  2. @rubik
  3. Bump version

    authored
Commits on Aug 4, 2014
  1. Merge pull request #13 from winny-/master

    authored
    Fix XML pretty-printing & import __version__ into setup.py
    
    Target this for a 0.5 release.
Commits on Jun 19, 2014
  1. @winny-
  2. @winny-

    Pretty print XML preserving literals & squashing blank lines

    winny- authored
    Fixes #11.
    
    Technically speaking, all whitespace is significant in XML as described here:
    http://www.oracle.com/technetwork/articles/wang-whitespace-092897.html
    
    For practical purposes, as long as we leave TEXT literals alone (text between
    elements), we should be OK.
    
    xmlformatter does not depend on any external Python libraries and appers to do a great job,
    xml.dom.minidom is known to be terrible as noted here:
    http://ronrothman.com/public/leftbraned/xml-dom-minidom-toprettyxml-and-silly-whitespace/
Commits on Jun 18, 2014
  1. Merge pull request #12 from winny-/master

    authored
    Allow color when piping (flag -t), don't always colorize when using -b, other fixes.
    
    Thank you so much for your help :+1: :+1: :+1:
  2. @winny-

    Exit with non-zero upon ^C

    winny- authored
  3. @winny-

    Colorize error messages, send to stderr, & exit non-zero

    winny- authored
    This way shell scripts don't get fed invalid json/xml,
    and the error condition can be detected through $? or what
    have you.
  4. @winny-
  5. @winny-

    Only colorize output if -t or if output is a tty

    winny- authored
    Before -b would still colorize output to a pipe.
  6. @winny-
  7. @winny-

    typo in docstring

    winny- authored
  8. @winny-

    Invoke print with end='' to prevent extra trailing newline.

    winny- authored
    Re-ordered __version__ behind imports because future imports
    **must** come before other statements.
Commits on Mar 8, 2014
  1. Bump version

    authored
  2. Merge pull request #10 from carstene1ns/master

    authored
    Pygments 1.6 and python 3 fixes
Commits on Dec 31, 2013
  1. @carstene1ns

    update for Pygments 1.6

    carstene1ns authored
  2. @carstene1ns
Commits on Sep 4, 2013
  1. Merge pull request #8 from Spearl/master

    authored
    Handled exception when json not provided
Commits on Aug 20, 2013
  1. @Spearl
Commits on Jan 22, 2013
  1. Aint nobody got time for that

    authored
  2. Forgot the package data

    authored
Commits on Jan 21, 2013
  1. Remove extra space

    authored
  2. Merge pull request #7 from adisbladis/master

    authored
    Support for XML and some rewriting.
    
    Sorry about that, I've been sick the whole month, I haven't had time to work on this or other fun stuff, I apologize. Your changes are good, thank you! I still have to make other changes! :)
Commits on Dec 11, 2012
  1. @adisbladis
Commits on Oct 20, 2012
  1. Merge pull request #6 from adisbladis/master

    authored
    Python3-support
  2. @adisbladis

    Fixed for python 3

    adisbladis authored
Commits on Oct 9, 2012
  1. Merge pull request #5 from kmorey/patch-1

    authored
    Only apply colors when output is a terminal
Commits on Oct 2, 2012
  1. @kmorey

    Only apply colors when output is a terminal

    kmorey authored
    This allows you to pipe to tools like "less" without adding the colors so it will display correctly.
    
    It still colors when dumping to a terminal directly.
Commits on Oct 1, 2012
  1. Merge pull request #3 from jkoppe/jkoppe-json-per-line

    authored
    operate on each stdin line
Commits on Sep 19, 2012
  1. operate on each stdin line

    Jason Koppe authored
Commits on Jul 20, 2012
  1. Add license file

    authored
Something went wrong with that request. Please try again.