question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

hidden characters in doc causing problem for copy/paste

See original GitHub issue

On https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-ec2.Vpc.html the value max­Azs 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: Screen Shot 2019-07-26 at 3 35 32 PM

This is how it looks when you copy paste it, because it is being pasted as max-Azs: Screen Shot 2019-07-26 at 3 36 44 PM

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:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
rix0rrrcommented, Aug 9, 2019

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.

0reactions
0xdabbad00commented, Aug 24, 2019

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

Screen Shot 2019-08-24 at 8 13 23 AM
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found