Skip to content

Is there a way to keep leading spaces from being stripped by Text component? #1695

Answered by jeetiss
njsdev asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @njsdev
react-pdf doesn't have pre tag or any analog of it, as a workaround you can set non-breaking space at the start of the line. here the example

i hope it helps

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@njsdev
Comment options

Answer selected by njsdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants