Module:Coordinates: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(avoid using global variables, and re-order the functions, per protected edit request by User:Jackmcbarn) |
(simplify whitespace-trimming pattern per protected edit request by User:Jackmcbarn) |
||
Line 213: | Line 213: | ||
local factor = 1 |
local factor = 1 |
||
direction = |
direction = direction:gsub('^ *(.-) *$', '%1'); |
||
if direction == "S" or direction == "W" then |
if direction == "S" or direction == "W" then |
||
factor = -1 |
factor = -1 |