diff --git a/reviewboard/reviews/markdown_extensions.py b/reviewboard/reviews/markdown_extensions.py
index 48ed7e770c57426f50c3d30819c9080871d46849..1728617c3075ac9cd1ff386d0a32920490050103 100644
--- a/reviewboard/reviews/markdown_extensions.py
+++ b/reviewboard/reviews/markdown_extensions.py
@@ -104,7 +104,7 @@ class TrimTrailingEmptyParagraphs(Treeprocessor):
         # Loop through the children from end to beginning, counting how many
         # of them are empty <p> elements.
         for child in reversed(root):
-            if child.tag != 'p' or child.text:
+            if child.tag != 'p' or child.text or len(child) > 0:
                 break
 
             start_i -= 1
