chiark / gitweb /
Add an extra strip() to work around tostring issue
authorDaniel Martí <mvdan@mvdan.cc>
Sun, 25 Oct 2015 23:28:29 +0000 (00:28 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Sun, 25 Oct 2015 23:28:29 +0000 (00:28 +0100)
commit9017328698e699bea75e96dc30b07f7146158a24
tree74299539d61a4430442f0aa3a996ebee5371bebe
parent995afdcbfd17f14157765b8b120f3c80c16a5c17
Add an extra strip() to work around tostring issue

In cases like this xml code:

<string name="app_name">"OpenKeychain"</string>
<!-- title -->
<string name="title_encrypt_text">"Encrypt"</string>

tostring() returns trailing whitespaces (including newlines). Which
aren't removed until the very end, after we try to remove enclosing
quotes. So strip right after tostring() too, since we never really care
about whitespaces anyway.
fdroidserver/common.py