[latex3-commits] [git/LaTeX3-latex3-latex3] l3text: Handle spaces in purified text (bd42ba300)
Joseph Wright
joseph.wright at morningstar2.co.uk
Fri Dec 6 16:31:41 CET 2019
Repository : https://github.com/latex3/latex3
On branch : l3text
Link : https://github.com/latex3/latex3/commit/bd42ba300842d1a3742e8b8242b1c2333bf92637
>---------------------------------------------------------------
commit bd42ba300842d1a3742e8b8242b1c2333bf92637
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Dec 6 15:28:34 2019 +0000
Handle spaces in purified text
>---------------------------------------------------------------
bd42ba300842d1a3742e8b8242b1c2333bf92637
l3kernel/l3text.dtx | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/l3kernel/l3text.dtx b/l3kernel/l3text.dtx
index ba6cbd586..08db41b85 100644
--- a/l3kernel/l3text.dtx
+++ b/l3kernel/l3text.dtx
@@ -2385,6 +2385,19 @@
% \begin{macrocode}
\text_declare_purify_equivalent:Nn \label { \use_none:n }
% \end{macrocode}
+% Spaces.
+% \begin{macrocode}
+\group_begin:
+\char_set_catcode_active:N \~
+\use:n
+ {
+ \group_end:
+ \text_declare_purify_equivalent:Nx ~ { \c_space_tl }
+ }
+\text_declare_purify_equivalent:Nn \nobreakspace { ~ }
+\text_declare_purify_equivalent:Nn \ { ~ }
+\text_declare_purify_equivalent:Nn \, { ~ }
+% \end{macrocode}
%
% \subsection{Accent and letter-like data for purifying text}
%
More information about the latex3-commits
mailing list