curds: Remove newline from PlaylistNode

I'm going to take a different approach with setting the row heights
directly, so start by removing the newline here.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2019-04-19 10:14:58 -04:00
parent a767cc08b8
commit 14851e0c59
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ class PlaylistNode:
return name.title()
def __str__(self):
return f"<small>\n</small><big>{self.name}</big>"
return f"<big>{self.name}</big>"
def append_child(self, child):
return self.__insert_node__(child, len(self.children))

View File

@ -18,7 +18,7 @@ class TestPlaylistNode(unittest.TestCase):
n = node.PlaylistNode("test node", "test-icon")
self.assertEqual(n.icon, "test-icon")
self.assertEqual(n.name, "Test Node")
self.assertEqual(str(n), "<small>\n</small><big>Test Node</big>")
self.assertEqual(str(n), "<big>Test Node</big>")
def test_node_less_than(self):
a = node.PlaylistNode("a")