Fix CPP clean_html to remove adding an extra dot

This commit is contained in:
Tim Lim 2023-10-21 16:19:22 +08:00
parent 887c879e0f
commit 50d7304194

View file

@ -82,7 +82,6 @@ module Docs
node << node.next
end
node.inner_html = node.inner_html.strip
node << '.' if node.content =~ /[a-zA-Z0-9\)]\z/
node.remove if node.content.blank? && !node.at_css('img')
end