Remove carriage returns.

Also add a presubmit so they don't get added to source code.

Change-Id: I6a85c6a934b1068a63646a0dcc0d3a08baa96ced
Reviewed-on: https://skia-review.googlesource.com/57110
Reviewed-by: Ravi Mistry <rmistry@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
diff --git a/tools/pathops_sorter.htm b/tools/pathops_sorter.htm
index d8371ad..42708c4 100644
--- a/tools/pathops_sorter.htm
+++ b/tools/pathops_sorter.htm
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html>
 
 <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
 <head>
@@ -7,14 +7,14 @@
 <div style="height:0">
 
 <div id="cubics">
-{{{152, 16}, {152, 16.0685501}, {91.06044, 16.1242027}, {16, 16.1242027}}}, id=0

-{{{16, 16.1242027}, {-59.06044, 16.1242027}, {-120, 16.0685501}, {-120, 16}}}, id=1

-{{{-120, 16}, {-120, 15.9314508}, {-59.06044, 15.8757973}, {16, 15.8757973}}}, id=2

-{{{16, 15.8757973}, {91.06044, 15.8757973}, {152, 15.9314508}, {152, 16}}}, id=3

-{{{16, 16}, {152, 16}}}, id=4

-{{{16, 17}, {152, 17}}}, id=5

-{{{16, 16}, {16, 17}}}, id=6

-{{{152, 16}, {152, 17}}}, id=7

+{{{152, 16}, {152, 16.0685501}, {91.06044, 16.1242027}, {16, 16.1242027}}}, id=0
+{{{16, 16.1242027}, {-59.06044, 16.1242027}, {-120, 16.0685501}, {-120, 16}}}, id=1
+{{{-120, 16}, {-120, 15.9314508}, {-59.06044, 15.8757973}, {16, 15.8757973}}}, id=2
+{{{16, 15.8757973}, {91.06044, 15.8757973}, {152, 15.9314508}, {152, 16}}}, id=3
+{{{16, 16}, {152, 16}}}, id=4
+{{{16, 17}, {152, 17}}}, id=5
+{{{16, 16}, {16, 17}}}, id=6
+{{{152, 16}, {152, 17}}}, id=7
 </div>
 
     </div>
@@ -145,7 +145,7 @@
         mouseX = (screenWidth / 2) / hscale + srcLeft;
         mouseY = (screenHeight / 2) / vscale + srcTop;
         hinitScale = hscale;
-        vinitScale = vscale;

+        vinitScale = vscale;
     }
 
     function setScale(x0, x1, y0, y1) {
@@ -160,7 +160,7 @@
         vscale = screenHeight / srcHeight;
         if (uniformScale) {
             hscale = Math.min(hscale, vscale);
-            vscale = hscale;

+            vscale = hscale;
         }
         var hinvScale = 1 / hscale;
         var vinvScale = 1 / vscale;
@@ -897,10 +897,10 @@
                 var scaleTextOffset = hscale != vscale ? -25 : -5;
                 ctx.fillText(hscale.toFixed(decimal_places) + 'x',
                         screenWidth - 10, screenHeight - scaleTextOffset);
-                if (hscale != vscale) {

+                if (hscale != vscale) {
                     ctx.fillText(vscale.toFixed(decimal_places) + 'y',
-                            screenWidth - 10, screenHeight - 5);

-                }

+                            screenWidth - 10, screenHeight - 5);
+                }
             }
             if (draw_t) {
                 drawPointAtT(curve);
@@ -1105,10 +1105,10 @@
                 if (focusWasOn) {
                     focus_on_selection = false;
                     hscale /= 1.2;
-                    vscale /= 1.2;

+                    vscale /= 1.2;
                 } else {
-                    hscale /= 2;

-                    vscale /= 2;

+                    hscale /= 2;
+                    vscale /= 2;
                 }
                 calcLeftTop();
                 redraw();
@@ -1119,11 +1119,11 @@
                 focusWasOn = focus_on_selection;
                 if (focusWasOn) {
                     focus_on_selection = false;
-                    hscale *= 1.2;

-                    vscale *= 1.2;

+                    hscale *= 1.2;
+                    vscale *= 1.2;
                 } else {
-                    hscale *= 2;

-                    vscale *= 2;

+                    hscale *= 2;
+                    vscale *= 2;
                 }
                 calcLeftTop();
                 redraw();