Skip to content

Testing show-whitespace - #18

Draft
fregante wants to merge 2 commits into
default-afrom
show-whitespace
Draft

fregante wants to merge 2 commits into
default-afrom
show-whitespace

Conversation

@fregante

@fregante fregante commented Jun 20, 2022 •

Copy link
Copy Markdown
Member

Spaces

 
  
  function() {}  
function  () {}
 
  
  function() {}  
function  () {}

Tabs

	
		
		function()	{}		
function		()	{}
	
		
		function()	{}		
function		()	{}

Mixed

	 
	 	 
 	 function() {} 	
function	 ()	{}
	 
	 	 
 	 function() {} 	
function	 ()	{}

Inlined

sandbox/README.md

Lines 19 to 28 in d773f59

```md
function() {}
function () {}
# Test URLs
https://github.com/fregante/github-sandbox/issues/345
```

Real code

function showWhiteSpacesOn(line: Element): void {
	const shouldAvoidSurroundingSpaces = Boolean(line.closest('.blob-wrapper-embedded')); // #2285
	const textNodesOnThisLine = getTextNodes(line);
	for (const [nodeIndex, textNode] of textNodesOnThisLine.entries()) {
		// `textContent` reads must be cached #2737
		let text = textNode.textContent!;
		if (text.length > 1000) { // #5092
			continue;
		}

@fregante fregante left a comment •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Spaces

 
  
  function() {}  
function  () {}
 
  
  function() {}  
function  () {}

Tabs

	
		
		function()	{}		
function		()	{}
	
		
		function()	{}		
function		()	{}

Mixed

	 
	 	 
 	 function() {} 	
function	 ()	{}
	 
	 	 
 	 function() {} 	
function	 ()	{}

Inlined

sandbox/README.md

Lines 19 to 28 in d773f59

```md
function() {}
function () {}
# Test URLs
https://github.com/fregante/github-sandbox/issues/345
```

Real code

function showWhiteSpacesOn(line: Element): void {
	const shouldAvoidSurroundingSpaces = Boolean(line.closest('.blob-wrapper-embedded')); // #2285
	const textNodesOnThisLine = getTextNodes(line);
	for (const [nodeIndex, textNode] of textNodesOnThisLine.entries()) {
		// `textContent` reads must be cached #2737
		let text = textNode.textContent!;
		if (text.length > 1000) { // #5092
			continue;
		}

Comment thread README.md
@@ -17,7 +17,7 @@ Rules:
1. I open an issue named `Testing in-title #1 issue references`

@fregante fregante Jun 20, 2022 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Spaces

 
  
  function() {}  
function  () {}
 
  
  function() {}  
function  () {}

Tabs

	
		
		function()	{}		
function		()	{}
	
		
		function()	{}		
function		()	{}

Mixed

	 
	 	 
 	 function() {} 	
function	 ()	{}
	 
	 	 
 	 function() {} 	
function	 ()	{}

Inlined

sandbox/README.md

Lines 19 to 28 in d773f59

```md
function() {}
function () {}
# Test URLs
https://github.com/fregante/github-sandbox/issues/345
```

Real code

function showWhiteSpacesOn(line: Element): void {
	const shouldAvoidSurroundingSpaces = Boolean(line.closest('.blob-wrapper-embedded')); // #2285
	const textNodesOnThisLine = getTextNodes(line);
	for (const [nodeIndex, textNode] of textNodesOnThisLine.entries()) {
		// `textContent` reads must be cached #2737
		let text = textNode.textContent!;
		if (text.length > 1000) { // #5092
			continue;
		}

Comment thread README.md Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant