From 0245930909caa958b8dcf810d85e542796a8b74d Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Mon, 6 Jul 2020 17:18:29 -0400
Subject: links are anysplit (all chars are breakable)
---
fmt/com.h | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
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
}
--
cgit