From 5866ae76f857ff0d88f0f4e01feb5780f9d7d8b4 Mon Sep 17 00:00:00 2001 From: Rajesh Pandian M Date: Sun, 6 Feb 2022 03:06:17 +0530 Subject: [PATCH] Same for inputfile --- cvrp2.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cvrp2.html b/cvrp2.html index 4601992..3964b0c 100644 --- a/cvrp2.html +++ b/cvrp2.html @@ -286,6 +286,7 @@ var lines = text.split("\n"); for (var i = 0; i < lines.length; ++i) { + lines[i]=lines[i].trim(); //MUST for cleaning! var words = lines[i].split(/\s+|\t/); //spaces and tabs if(words[0] == "NAME") { instName = words[2]; @@ -360,7 +361,7 @@ var solVal = 0.0; var outVal = 0.0; for (var i = 0; i < lines.length; ++i) { - lines[i]=lines[i].trim(); //MUST + lines[i]=lines[i].trim(); //MUST for cleaning! var words = lines[i].split(/\s+|\t/); //spaces and tabs var routeVal = 0.0; var prevPoint = 0;