From 803cf7a263142104145f5469d2e127073d1e0b66 Mon Sep 17 00:00:00 2001
From: Simmo Saan <simmo.saan@gmail.com>
Date: Sat, 25 Jan 2025 14:24:19 +0200
Subject: [PATCH] Allow line breaks in (underlined) URLs

---
 unitartucs/thesis.cls | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/unitartucs/thesis.cls b/unitartucs/thesis.cls
index 60b9d6a..5f56f87 100644
--- a/unitartucs/thesis.cls
+++ b/unitartucs/thesis.cls
@@ -263,7 +263,7 @@
     }
     \NewDocumentCommand\underLine{+m}{{\@underLine#1}}
     \DeclareUrlCommand{\Hurl}{% https://tex.stackexchange.com/a/169734
-        \def\UrlLeft##1\UrlRight{\underLine{##1}}
+        \def\UrlLeft##1\UrlRight{\@underLine##1} % Use \@underLine directly to allow line breaks in urls
     }
 
     % hyperref-i adapteerimine lisatud subsubsubsection-i jaoks
-- 
GitLab