lib/github/mandoc.rb
# Normalise whitespace in non-monospaced elements
Normalise whitespace in non-monospaced elements
Normalise whitespace in non - monospaced elements
def normalise_whitespace(element)
				return element unless element.ancestors("pre").empty?
				element.children.each do |node|
					node.content= node.content.gsub(/\s+/, " ") if node.is_a? Nokogiri::XML::Text
				end
			end
def normalise_whitespace ( element ) return element unless element . ancestors ( "pre" ) . empty? element . children . each do | node | node . content = node . content . gsub ( / \s + / , " " ) if node . is_a? Nokogiri :: XML :: Text end end
Normalise whitespace in non-monospaced elements
Normalise whitespace in non - monospaced elements
element