summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-breakurl.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-01-23 22:34:45 +0000
committerKarl Berry <karl@freefriends.org>2018-01-23 22:34:45 +0000
commitce07f5180b54e0229abae4d10288940c610afe31 (patch)
treefeef3d1dc42bedb22d5648026a39b03388027167 /Master/texmf-dist/tex/latex/lwarp/lwarp-breakurl.sty
parent607588e2b8c554ec8bfbe11f1391622768fe79c8 (diff)
lwarp (23jan18)
git-svn-id: svn://tug.org/texlive/trunk@46416 c570f23f-e606-0410-a88d-b1316a301751
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
%%