Selaa lähdekoodia

Don't remove empty <mspace> elements

Thibaut Courouble 9 vuotta sitten
vanhempi
commit
04a5c40f60
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      lib/docs/filters/core/clean_text.rb

+ 1 - 1
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!