I use the hyperref
package and the corresponding \href{}{}
command and would like to adjust the box which is drawn around the text. In more detail, in the picture below you can see a link for address, phone number, and email. The boxes around phone number and email are ok. However, looking at the box for the address one can see that there is a line break and actually there are two boxes and the bottom border of the lower box is acutally crossing the box of the phone number.
I am aiming for only one box around the address which does not cross the lower box. For illustration see the following image
or even borders whith some space in between.
When opening the template in overleaf and replacing \cvaddress{United Kingdom}%address
with \cvaddress{\href{https://osm.org/go/euut1kjnX?m=}{United Kingdom, this is just for a linebreak}}%address
one immediately encompasses the problem I am trying to solve, as can be seen here
To replicate the problem one can use the following code
\documentclass[10pt,a4paper]{article}
\usepackage[]{hyperref}
%\usepackage[]{hyperref}
\begin{document}
\begin{tabular}{p{4cm}} \href{https://osm.org/go/euut1kjnX?m=}{United Kingdom, this is just for a linebreak} \end{tabular}
\end{document}
Of course, just expanding the tabular width is not an option ;)
In more detail, I use the following documentclass \documentclass[letterpaper]{twentysecondcv}
and inserted the following line \RequirePackage[allbordercolors=red, pdfborder = 0 0 0]{hyperref}
in twentysecondcv.cls
file. The source code can be found here. Of course, I adapted the source code somehow to obtain a different style, but this does not impact the problem I am facing, as it is present in the source code as well.
If anything is unclear please let me know immediately and I am going to try my best to solve it as soon as possible!
EDIT: I added a MWE and restructured the question slightly.
article
class and reproduce the issue with something like\begin{tabular}{p{4cm}} \href{https://osm.org/go/euut1kjnX?m=}{United Kingdom, this is just for a linebreak} \end{tabular}