aboutsummaryrefslogtreecommitdiff
path: root/fmt
diff options
context:
space:
mode:
Diffstat (limited to 'fmt')
-rw-r--r--fmt/com.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/fmt/com.h b/fmt/com.h
index e8388ae..8083172 100644
--- a/fmt/com.h
+++ b/fmt/com.h
@@ -1,5 +1,12 @@
%% links
+\def\anysplit#1{%
+ \ifx#1\relax\let\next\relax\else
+ #1\discretionary{}{}{}\let\next\anysplit
+ \fi
+ \next
+}
+
\def\link#1{%
\pdfstartlink
user{/Subtype /Link
@@ -9,7 +16,7 @@
/S /URI
/URI (#1)
>>}%
- {\tt \color{blue} #1}%
+ {\tt \color{blue} \anysplit #1\relax}%
\pdfendlink
}