From 04a5c40f60b4d7c6fbf257c1735f9cc731950d4f Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Mon, 10 Oct 2016 09:40:11 -0400 Subject: [PATCH] Don't remove empty elements --- lib/docs/filters/core/clean_text.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/filters/core/clean_text.rb b/lib/docs/filters/core/clean_text.rb index e525c8a5..1b823c59 100644 --- a/lib/docs/filters/core/clean_text.rb +++ b/lib/docs/filters/core/clean_text.rb @@ -1,6 +1,6 @@ module Docs class CleanTextFilter < Filter - EMPTY_NODES_RGX = /<(?!td|th|iframe)(\w+)[^>]*>[[:space:]]*<\/\1>/ + EMPTY_NODES_RGX = /<(?!td|th|iframe|mspace)(\w+)[^>]*>[[:space:]]*<\/\1>/ def call html.strip!