As mentioned
back in 2010, in order to allow extremely long strings to wrap onto new lines, we have to insert "soft hyphens" at suitable points within the string.
Unfortunately, when the long string is an email address or URL, the hyphen completely changes the meaning of the text.
For example, the input
www.pdfsharp.net could end up being displayed as:
Code:
+----------+
|www.pdfsh-|
|arp.net |
+----------+
which reads as
www.pdfsh-arp.net - a completely different domain.
At the moment, the only way around this is to create a custom version of MigraDoc, and modify the
ParagraphRenderer.RenderSoftHyphen method to not render the hyphen.
(This is made more difficult by the fact that the GitHub repository is consistently several months behind the NuGet packages. GitHub currently has beta 4a, whereas NuGet has 4c.)It would be extremely useful to have an option to hide the soft hyphens, or to have an alternative invisible word-breaking character which we could use instead.