Compact delivery details. 2020-08-31
authorIain Patterson <me@iain.cx>
Mon, 31 Aug 2020 12:44:11 +0000 (08:44 -0400)
committerIain Patterson <me@iain.cx>
Mon, 31 Aug 2020 12:44:11 +0000 (08:44 -0400)
lib/delivery.php

index 9cdd338..6d7643b 100644 (file)
       }
       $area = get_address_area($address);
 
-      echo " in " . htmlspecialchars($area->getName()) . " at:<br>";
+      echo " in " . htmlspecialchars($area->getName()) . " at:";
       $city = get_area_city($area);
-      echo "\n<br>" . htmlspecialchars($address->getLine());
-      echo "\n<br>" . htmlspecialchars($city->getName());
-      echo "\n<br>" . htmlspecialchars($address->getPostcode());
-      if (count($phones)) echo "\n<br><br>Telephone <strong>" . implode(" or ", $phones) . "</strong>";
+      echo "\n" . htmlspecialchars($address->getLine());
+      echo ",\n" . htmlspecialchars($address->getPostcode());
+      if (count($phones)) echo ";\nTelephone <strong>" . implode(" or ", $phones) . "</strong>";
       echo "</p>\n";
 
       $notes = $order->getNotes();