summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-breakurl.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-breakurl.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-breakurl.sty16
1 files changed, 7 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-breakurl.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-breakurl.sty
index 0e2ea60d61a..4dbc5689393 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-breakurl.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-breakurl.sty
@@ -18,18 +18,16 @@
\LWR@ProvidesPackageDrop{breakurl}
\LetLtxMacro\burl\url
-\NewDocumentCommand{\LWR@burlaltb}{O{} +m m}{%
-\LWR@subhyperref{#3}{#2}% order reversed from \href
-\endgroup%
+\NewDocumentCommand{\burlalt}{O{} +m m}{%
\LWR@ensuredoingapar%
-}
-
-\DeclareRobustCommand*{\burlalt}{%
+\def\LWR@templink{#2}%
+\@onelevel@sanitize\LWR@templink%
+\def\LWR@templinktwo{#3}%
+\@onelevel@sanitize\LWR@templinktwo%
+\LWR@subhyperref{\LWR@templink}{\LWR@templinktwo}%
\LWR@ensuredoingapar%
-\begingroup%
-\catcode`\_=12
-\LWR@burlaltb%
}
+
\LetLtxMacro\urlalt\burlalt
\endinput
%%