hidden characters in doc causing problem for copy/paste
See original GitHub issueOn https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-ec2.Vpc.html the value maxAzs
is being written as max­Azs
so it copy/pastes poorly, specifically on VS Code that retains characters like that apparently, so you end up with an invisible character and your code doesn’t work.
Inspecting with Chrome shows the issue:
This is how it looks when you copy paste it, because it is being pasted as max-Azs
:
I don’t know if this issue exists elsewhere in the docs.
The change I would like to have happen is to make it possible to copy/paste that variable from the docs without an invisible character ending up in it.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Copy paste result contains hidden character #504 - GitHub
Copy paste result contains hidden tailing character U+202C which can cause syntax errors to programming languages or breaks in Excel.
Read more >Copying/Pasting from Word Processors - SMILE
Copying /Pasting from Word Processors – Understanding Hidden Characters ... this can lead to problems when copying and pasting that text into ...
Read more >Character Encoding Issues pasting from Go…
The issue appears to be only using Safari for Google Docs and trying to copy/paste into Pages. There seems to be a character...
Read more >Hidden characters in text - Microsoft Community
First suggestion: Once you've copied, use Edit> Paste Special - Unformatted Text to paste into your Word document. Then format the text as ......
Read more >Reveal Hidden Characters and Word's secrets with Show All
If you are working on a Word document with complex formatting, sometimes you need to see the hidden characters and unseen workings.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That is my bad. We are doing this to make long identifiers wrap naturally when the screen size gets narrow, or for very long columns.
I will investigate another way achieving this. Replacing soft hyphens with a
<wbr>
tag might be sufficient.My preference would be for the docs to not care about word breaks. You can see here an example where the string
ConstructNode
breaks awkwardly currently, and that is totally fine. I’d much rather have the docs appear like this than have these hidden character tricks that are happening currently. https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-s3.BucketPolicy.html