Skip to content

Commit

Permalink
fix a bug with a space char
Browse files Browse the repository at this point in the history
  • Loading branch information
dotmobo committed Apr 5, 2017
1 parent 126581b commit 2b9d35c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rng_to_form/rng.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def data(x):
return "data:{0}".format(type)

def value(x):
return "not editable: {}".format(x.text)
return "not editable:{}".format(x.text)

def attribute(x):
inner = x.find('.//')
Expand Down
2 changes: 1 addition & 1 deletion tests/test_form_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def setUp(self):
def test_generate_form(self):
generated_form = make_form(self.rng)
self.assertIsNotNone(generated_form)
self.assertTrue('''<div class="Comment_N65541"><div style='font-weight:bold;'>Comment_N65541.value</div><input class='selectable' value=" My comment" style='width:87%' name="Comment_N65541" readonly></div></div>''' in generated_form)
self.assertTrue('''<div class="Comment_N65541"><div style='font-weight:bold;'>Comment_N65541.value</div><input class='selectable' value="My comment" style='width:87%' name="Comment_N65541" readonly></div></div>''' in generated_form)

def test_make_tree(self):
tree = make_tree({'a.b': 1, 'a.c': 2, 'b.d': 1, 'b.e.a': 1, 'b.e.b': 2})
Expand Down

0 comments on commit 2b9d35c

Please sign in to comment.