Skip to content

Conversation

@nvitucci
Copy link
Contributor

@nvitucci nvitucci commented Feb 14, 2024

The pipe is excluded from content when copied through the Copy icon, causing it to be skipped when a code block like in the Kafka docs is copied.

This PR seems to fix this behaviour, but I would like to understand what was the rationale for exclusion before applying it.
This change was introduced in #204, but from the discussion I can't understand why the pipe was excluded as well.

@nvitucci nvitucci requested a review from recrwplay February 14, 2024 16:48
@netlify
Copy link

netlify bot commented Feb 14, 2024

Deploy Preview for neo4j-docs-ui ready!

Name Link
🔨 Latest commit bee4ee1
🔍 Latest deploy log https://app.netlify.com/sites/neo4j-docs-ui/deploys/65cceed597d4d70009f415fa
😎 Deploy Preview https://deploy-preview-213--neo4j-docs-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@nvitucci nvitucci changed the title Remove pipe from excluded content in callouts Remove pipe from replaced characters in callouts Feb 14, 2024
@recrwplay
Copy link
Collaborator

The original intention was to strip lines by removing spaces from the end. Tabs where then also included and the regex for 'tabs or spaces' got a bit mangled.

Copy link
Collaborator

@recrwplay recrwplay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally and works as expected. Thanks @nvitucci !

@nvitucci nvitucci merged commit 620a709 into master Feb 15, 2024
@nvitucci nvitucci deleted the fix-missing-pipe-copy branch February 15, 2024 09:54
recrwplay pushed a commit to recrwplay/docs-ui that referenced this pull request May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants