Commit 4992ce88 by Braden MacDonald

Minor fix for "<title></title>"

parent f206f28b
...@@ -73,7 +73,7 @@ class RemoveTitle(Change): ...@@ -73,7 +73,7 @@ class RemoveTitle(Change):
return node.tag == "title" and node.getparent().tag == "problem-builder" return node.tag == "title" and node.getparent().tag == "problem-builder"
def apply(self): def apply(self):
title = self.node.text.strip() title = self.node.text.strip() if self.node.text else u''
p = self.node.getparent() p = self.node.getparent()
old_display_name = p.get("display_name") old_display_name = p.get("display_name")
if old_display_name and old_display_name != title: if old_display_name and old_display_name != title:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment