Skip to content

Commit

Permalink
test nobreakspace
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Apr 9, 2024
1 parent 524ded3 commit 796c877
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions experiments/nobreakspace.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
\DocumentMetadata{uncompress,testphase={phase-III,title}}
\documentclass{article}
\ExplSyntaxOn
\pdf_object_new:n{obj-nbsp}
\pdf_object_write:nnn{obj-nbsp}{dict}{/ActualText~<FEFF00A0>}
\DeclareRobustCommand{\nobreakspace}{%
\leavevmode\pdf_bdcobject:nn{Span}{obj-nbsp}\nobreak\pdffakespace\nobreak\ \pdf_emc:}
\ExplSyntaxOff
\title{blub}
\textwidth=3mm
\begin{document}
a b c

a~b~c

We~don't~want~line~breaks~here
\end{document}

0 comments on commit 796c877

Please sign in to comment.