chore: indent
							parent
							
								
									93d57eab5b
								
							
						
					
					
						commit
						6c3e1cc90c
					
				
							
								
								
									
										12
									
								
								html.lua
								
								
								
								
							
							
						
						
									
										12
									
								
								html.lua
								
								
								
								
							| 
						 | 
					@ -5,11 +5,11 @@ local function trim(str)
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
local function shallow_copy(t)
 | 
					local function shallow_copy(t)
 | 
				
			||||||
  local t2 = {}
 | 
						local t2 = {}
 | 
				
			||||||
  for k,v in pairs(t) do
 | 
						for k,v in pairs(t) do
 | 
				
			||||||
    t2[k] = v
 | 
							t2[k] = v
 | 
				
			||||||
  end
 | 
						end
 | 
				
			||||||
  return t2
 | 
						return t2
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -646,7 +646,7 @@ function M._tostring(node, indent, include_internal_pseudoelements)
 | 
				
			||||||
	local node_name = ""
 | 
						local node_name = ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if not is_pseudo_element or include_internal_pseudoelements then
 | 
						if not is_pseudo_element or include_internal_pseudoelements then
 | 
				
			||||||
	-- Print the current node's tag name
 | 
							-- Print the current node's tag name
 | 
				
			||||||
		node_name = node_name .. "\n" .. indent_str .. "<" .. (node.tag_name or ":root")
 | 
							node_name = node_name .. "\n" .. indent_str .. "<" .. (node.tag_name or ":root")
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue