diff --git a/user/profile.php b/user/profile.php
index 54d65f21dd7..7b58f3d4f34 100644
--- a/user/profile.php
+++ b/user/profile.php
@@ -243,7 +243,7 @@ echo '';
// Print all the little details in a list
-echo '
';
+echo '';
if (! isset($hiddenfields['country']) && $user->country) {
print_row(get_string('country') . ':', get_string($user->country, 'countries'));
diff --git a/user/view.php b/user/view.php
index 258608314c1..d5485cb4ec4 100644
--- a/user/view.php
+++ b/user/view.php
@@ -237,7 +237,7 @@ echo '';
// Print all the little details in a list
-echo '';
+echo '';
// Show email if any of the following conditions match.
// 1. User is viewing his own profile.