Get rid of possible leading and trailing whitespaces in lookup_term() - vt - Print definitions from Vocabolario Treccani
 (HTM) hg clone https://bitbucket.org/iamleot/vt
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) changeset 5c3fbc584b69b8c79da908cf6749f8f62577fa30
 (DIR) parent 1e576f9540ff98e9f71ad56e280bcda3435e512a
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Sun, 13 May 2018 14:19:21 
       
       Get rid of possible leading and trailing whitespaces in lookup_term()
       
       Diffstat:
        vt.py |  2 +-
        1 files changed, 1 insertions(+), 1 deletions(-)
       ---
       diff -r 1e576f9540ff -r 5c3fbc584b69 vt.py
       --- a/vt.py     Mon Jan 08 23:04:21 2018 +0100
       +++ b/vt.py     Sun May 13 14:19:21 2018 +0200
       @@ -49,7 +49,7 @@
            with request.urlopen(req) as r:
                t = BeautifulSoup(r, 'html.parser', parse_only=SoupStrainer(class_='text spiega'))
        
       -    return t.p.text if t.p else None
       +    return t.p.text.strip() if t.p else None
        
        
        def terms(term):