|
|
@ -388,3 +388,25 @@ pluginWhiteList=shell,bookmarks,locations
|
|
|
|
template_object = KDEFormat(template_text, '/path/to/template')
|
|
|
|
template_object = KDEFormat(template_text, '/path/to/template')
|
|
|
|
original_object.join_template(template_object)
|
|
|
|
original_object.join_template(template_object)
|
|
|
|
assert original_object.document_text == join_result
|
|
|
|
assert original_object.document_text == join_result
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_with_xa0_symbol_in_source_document(self):
|
|
|
|
|
|
|
|
original_text = '''[Test]
|
|
|
|
|
|
|
|
Name[pl]=Przechowalnia certyfikatów i\xa0kluczy
|
|
|
|
|
|
|
|
Comment[fr]=Trousseau de clés de GNOME\xa0: composant PKCS#11
|
|
|
|
|
|
|
|
NoShow=true
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template_text = '''[Test]
|
|
|
|
|
|
|
|
!NoShow=
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
join_result = '''[Test]
|
|
|
|
|
|
|
|
Name[pl]=Przechowalnia certyfikatów i\xa0kluczy
|
|
|
|
|
|
|
|
Comment[fr]=Trousseau de clés de GNOME\xa0: composant PKCS#11
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
original_object = KDEFormat(original_text, '/path/to/template')
|
|
|
|
|
|
|
|
template_object = KDEFormat(template_text, '/path/to/template')
|
|
|
|
|
|
|
|
original_object.join_template(template_object)
|
|
|
|
|
|
|
|
assert original_object.document_text == join_result
|
|
|
|