
Hi again,
In case someone else is wondering, it looks
like \setupalign[stretch,fullhz] prevents breaks after hyphens in the
examples I've tried.
Cheers,
Florent
Le mar. 22 juil. 2025 à 08:54, Florent Michel
Hi,
Thanks a lot Hans and everyone who has worked on it for the new upload! From what I can tell from my few projects, math in HTML export seems to have significantly improved.
I have just noticed what seems to be a small issue with hyphenated words in the HTML export: an extra space is added when the pdf output has a line break after the hyphen. Here is a minimal example showing the issue:
__________________________________________ \setupbackend[export=yes] \starttext blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah co-worker \stoptext __________________________________________
(The number of ‘blah’s is adjusted to that ConTeXt adds a line break after ‘co-’ in the pdf.) The relevant part of the .html output is:
<div> blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah co- worker</div>
(Notice the space after ‘co-’.)
Would there be a way to avoid this extra space? As an alternative, is it possible to prevent line breaks after a hyphen?
(I tried playing with \setupbreakpoint, e.g., \setupbreakpoint[test][-][nleft=100,nright=100], but did not manage to get it working for the hyphens, although it seems to work well for other characters.)
Cheers, Florent