Unified · Split
| @@ -2,7 +2,7 @@ · 1 unmodified line | ||
| 2 | 2 | |
| 3 | 3 | module Docs |
| 4 | 4 | class CleanTextFilter < Filter |
| 5 | − EMPTY_NODES_RGX = /<(?!td|th|iframe|mspace)(\w+)[^>]*>[[:space:]]*<\/\1>/ | |
| 5 | + EMPTY_NODES_RGX = /<(?!td|th|iframe|mspace|rect|path|ellipse|line|polyline)(\w+)[^>]*>[[:space:]]*<\/\1>/ | |
| 6 | 6 | |
| 7 | 7 | def call |
| 8 | 8 | return html if context[:clean_text] == false |