New issue
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
[DDW-552] Line breaks on the address from exported PDF #2402
[DDW-552] Line breaks on the address from exported PDF #2402
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yakovkaravelov . Tested on 16779 on both Windows and Mac. Still not fixed. There's still a space, see the following (Note: the space is added between 5392 and k6ay. Also between hslc and lqek):
addr_test1qrgz43v6m8cc8ugxsnlv6ztnru229n5392 k6aya6sedgmc86x30xeux36hqv5uhm9qcr0hvf2hhslc lqekunu3h6re9scyqtmm
This is the PDF
Hi @yakovkaravelov , the issue is on the Jira ticket. Steps Access to Wallet - Receive Expected result |
@yakovkaravelov @miorsufianiohk please get on a call and discuss this. |
@yakovkaravelov please merge latest develop. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yakovkaravelov issue is still presented.
Try to copy the address from this doc and paste it somewhere. You will see spaces
Address-Ledger Nano S-2021-02-26T120718.0101.pdf
…from-exported-pdf
This is strange... 🤔 NOTE: This was tested on develop build!!! Can you all try this one: ☝️ I don't see a problem with this. In text editor case I get expected new lines while in the Browser's address bar I don't get any spaces... |
@nikolaglumac hmmm weird. With your PDF, I have same results like you have. Without spaces. |
@nikolaglumac You are in right. It depends on PDF reader. If I open PDF in browser then there are no spaces but if I open with a reader installed on my machine then spaces are presented |
@nikolaglumac : I found no space observed only when I opened the PDF on Chrome browser and pasted the address onto Chrome URL text field. (see result below). When I opened the PDF on Chrome, copied the address and pasted: When I opened the PDF on Safari, copied the address and pasted: When I opened the PDF Reader Pro Lite copied the address and pasted: |
@miorsufianiohk |
Perhaps we need to think about stripping whitespace in the receiver input on the send form? |
@nikolaglumac @tomislavhoracek @gabriela-ponce @miorsufianiohk @ManusMcCole @alexander-rukin |
these fields (description and network) should have smaller fonts too - https://zpl.io/blMomG5 with size 9px for address 12px size is more than enought for these elements |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line breaks issue no longer exist when tested on smaller font with continuous one line address. Great work @yakovkaravelov . 👍 . Tested on 16891
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls add styles to the description and network parts
@alexander-rukin Would you please check this out? |
is this the same? and live fonts seem bigger 🤔 UPD: font sizes are correct (pdf is just scaling on a screen and it makes feel you something is different) |
This PR removed line break characters on the address from exported PDF
Jira Ticket
Todos
Testing Checklist
App
Wallet
=>Receive
, click onShare
button to openAddress Share
dialog, export address info to PDF by clicking onSave to PDF
button, and make sure address from exported PDF doesn't include line break charactersScreenshots
English
Japanese
Test Cases
Review Checklist
Basics
feature
/bug
/chore
,release-x.x.x
)yarn test
)yarn dev
)yarn package
/ CI builds)yarn flow:test
)yarn lint
)yarn prettier:check
)yarn manage:translations
produces no changes)yarn storybook
)yarn.lock
file is updatedCode Quality
Testing
After Review
done
column on the YouTrack board