"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "python/cssbeautifier/_main.py" between
js-beautify-1.13.13.tar.gz and js-beautify-1.14.0.tar.gz

About: JS Beautifier is a JavaScript (and bookmarket) beautifier.

_main.py  (js-beautify-1.13.13):_main.py  (js-beautify-1.14.0)
skipping to change at line 160 skipping to change at line 160
return usage() return usage()
elif opt in ("--indent-size", "-s"): elif opt in ("--indent-size", "-s"):
css_options.indent_size = int(arg) css_options.indent_size = int(arg)
elif opt in ("--indent-char", "-c"): elif opt in ("--indent-char", "-c"):
css_options.indent_char = arg css_options.indent_char = arg
elif opt in ("--eol", "-e"): elif opt in ("--eol", "-e"):
css_options.eol = arg css_options.eol = arg
elif opt in ("--indent-with-tabs", "-t"): elif opt in ("--indent-with-tabs", "-t"):
css_options.indent_with_tabs = True css_options.indent_with_tabs = True
elif opt in ("--preserve-newlines"): elif opt in ("--preserve-newlines",):
css_options.preserve_newlines = True css_options.preserve_newlines = True
elif opt in ("--disable-selector-separator-newline"): elif opt in ("--disable-selector-separator-newline",):
css_options.selector_separator_newline = False css_options.selector_separator_newline = False
elif opt in ("--brace-style", "-b"): elif opt in ("--brace-style", "-b"):
css_options.brace_style = arg css_options.brace_style = arg
elif opt in ("--end-with-newline", "-n"): elif opt in ("--end-with-newline", "-n"):
css_options.end_with_newline = True css_options.end_with_newline = True
elif opt in ("--disable-newline-between-rules"): elif opt in ("--disable-newline-between-rules",):
css_options.newline_between_rules = False css_options.newline_between_rules = False
elif opt in ("--space-around-combinator"): elif opt in ("--space-around-combinator",):
css_options.space_around_combinator = True css_options.space_around_combinator = True
elif opt in ("--indent-empty-lines"): elif opt in ("--indent-empty-lines",):
css_options.indent_empty_lines = True css_options.indent_empty_lines = True
elif opt in ("--editorconfig"): elif opt in ("--editorconfig",):
css_options.editorconfig = True css_options.editorconfig = True
try: try:
filepaths, replace = get_filepaths_from_params(filepath_params, replace) filepaths, replace = get_filepaths_from_params(filepath_params, replace)
for filepath in filepaths: for filepath in filepaths:
if not replace: if not replace:
outfile = outfile_param outfile = outfile_param
else: else:
outfile = filepath outfile = filepath
 End of changes. 6 change blocks. 
6 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)