We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have an issue when displaying an email in a pdf. when it wraps over to a new line it adds a hyphen. test@gmail.com becomes
test@gmail.com
test@gm- ail.com
so now it looks like the email contains a - when of course, it does not.
-
how is this fixed in react-pdf? I don't immediately see any good solution.
Font.registerHyphenationCallback(word => { // Return entire word as unique part return [word]; });
doesn't seem to work as it applies it to all text but I just want it applied specifically to one string
Render a string and cause it to wrap over multiple lines
the option to at least say, do not show a hyphen
it shows a hyphen
No response
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
@wojtekmaj any solution for this?
It looks like you confused React-PDF with @react-pdf/renderer. Please file an issue in their repo instead.
No branches or pull requests
Before you start - checklist
Description
I have an issue when displaying an email in a pdf. when it wraps over to a new line it adds a hyphen.
test@gmail.com
becomes
so now it looks like the email contains a
-
when of course, it does not.how is this fixed in react-pdf? I don't immediately see any good solution.
doesn't seem to work as it applies it to all text but I just want it applied specifically to one string
Steps to reproduce
Render a string and cause it to wrap over multiple lines
Expected behavior
the option to at least say, do not show a hyphen
Actual behavior
it shows a hyphen
Additional information
No response
Environment
The text was updated successfully, but these errors were encountered: