diff --git a/build/tools/ship.py b/build/tools/ship.py index 89419b85..d2c30521 100755 --- a/build/tools/ship.py +++ b/build/tools/ship.py @@ -6,18 +6,17 @@ # Licensed under the Apache 2 License as is the rest of the project # Copyright (c) 2011 Jeff Schiller # -# This script has very little real-world application. It is only used in our pure-client web -# app served on GoogleCode so we can have one HTML file, run a build script and generate a 'release' -# version without having to maintain two separate HTML files. +# This script has very little real-world application. It is only used in our pure-client web app +# served on GoogleCode so we can have one HTML file, run a build script and generate a 'release' +# version without having to maintain two separate HTML files. It does this by evaluating +# 'processing comments' that are suspicously similar to IE conditional comments and then outputting +# a new HTML file after evaluating particular variables. # # This script takes the following inputs: # # * a HTML file (--i=in.html) # * a series of flag names (--on=Foo --on=Bar) # -# It parses, the HTML file, enables/disables sections of the markup based -# on if-else comments and flag values, then outputs a new HTML file. -# # Example: # # in.html: @@ -125,12 +124,9 @@ def parseComment(line, line_num, enabled_flags): def ship(inFileName, enabled_flags): # read in HTML file - in_file = file(inFileName, 'r') - - i = 0 - lines = in_file.readlines() - + lines = file(inFileName, 'r').readlines() out_lines = [] + i = 0 # loop for each line of markup for line in lines: diff --git a/editor/svg-editor.html b/editor/svg-editor.html index ff509ab8..fd1d87d1 100644 --- a/editor/svg-editor.html +++ b/editor/svg-editor.html @@ -11,9 +11,9 @@ + +