[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [depictor/master] Fix leading spaces, turn them into tabs



commit 515885814845d42c87199dba4b0e85fda988cff6
Author: Tom Ritter <tom@xxxxxxxxx>
Date:   Fri Apr 20 09:39:59 2018 -0500

    Fix leading spaces, turn them into tabs
---
 website.py | 44 ++++++++++++++++++++++----------------------
 1 file changed, 22 insertions(+), 22 deletions(-)

diff --git a/website.py b/website.py
index 4cfc7cf..02fbdce 100755
--- a/website.py
+++ b/website.py
@@ -1329,12 +1329,12 @@ class WebsiteWriter:
 		+ "    }\n"
 		+ "    let fps = $('#fingerprintBox').val().split(',');\n"
 		+ "    let retrieveData = function(fullFP) {\n"
-        + "      if (loadedRelays.indexOf(fullFP) >= 0) {\n"
-        + "        return;\n"
-        + "      }\n"
-        + "      loadedRelays.push(fullFP);\n"
-        + "      let rangeString = 'bytes=' + relayIndexes[fullFP].indexes[0] + '-' + relayIndexes[fullFP].indexes[1];\n"
-        + "      console.log(\"Querying for \" + rangeString);\n"
+		+ "      if (loadedRelays.indexOf(fullFP) >= 0) {\n"
+		+ "        return;\n"
+		+ "      }\n"
+		+ "      loadedRelays.push(fullFP);\n"
+		+ "      let rangeString = 'bytes=' + relayIndexes[fullFP].indexes[0] + '-' + relayIndexes[fullFP].indexes[1];\n"
+		+ "      console.log(\"Querying for \" + rangeString);\n"
 		+ "      $.ajax({\n"
 		+ "        url: 'consensus-health.html',\n"
 		+ "        headers: { 'Range' : rangeString },\n"
@@ -1348,23 +1348,23 @@ class WebsiteWriter:
 		+ "      let partialFP = fps[i].trim().toUpperCase();\n"
 		+ "      let retrievedData = false;\n"
 		+ "      if (partialFP in relayIndexes) {\n"
-        + "        retrieveData(partialFP);\n"
-        + "        retrievedData = true;\n"
-        + "      } else {\n"
-        + "        partialloop: for (r in relayIndexes) {\n"
-        + "          if (relayIndexes[r].nickname.toUpperCase() == partialFP) {\n"
-        + "            retrieveData(r);\n"
-        + "            retrievedData = true;\n"
-        + "          }\n"
-        + "          if (r.startsWith(partialFP)) {\n"
-        + "            retrieveData(r);\n"
+		+ "        retrieveData(partialFP);\n"
+		+ "        retrievedData = true;\n"
+		+ "      } else {\n"
+		+ "        partialloop: for (r in relayIndexes) {\n"
+		+ "          if (relayIndexes[r].nickname.toUpperCase() == partialFP) {\n"
+		+ "            retrieveData(r);\n"
 		+ "            retrievedData = true;\n"
-        + "          }\n"
-        + "        }\n"
-        + "        if (!retrievedData) {\n"
-        + "          alert(\"Could not match \" + partialFP + \" to a full or partial fingerprint or a nickname.\");\n"
-        + "        }\n"
-        + "      }\n"
+		+ "          }\n"
+		+ "          if (r.startsWith(partialFP)) {\n"
+		+ "            retrieveData(r);\n"
+		+ "            retrievedData = true;\n"
+		+ "          }\n"
+		+ "        }\n"
+		+ "        if (!retrievedData) {\n"
+		+ "          alert(\"Could not match \" + partialFP + \" to a full or partial fingerprint or a nickname.\");\n"
+		+ "        }\n"
+		+ "      }\n"
 		+ "    }\n"
 		+ "  };\n"
 		+ " $('#relay-addition-javascript-pointer').html('But you can add individual "



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits