pvl/web/html.py
changeset 361 a780a180a453
parent 358 441288a30cea
equal deleted inserted replaced
360:1b33bed4a7c4 361:a780a180a453
   209                 continue
   209                 continue
   210 
   210 
   211             if key.endswith('_') :
   211             if key.endswith('_') :
   212                 # strip underscore
   212                 # strip underscore
   213                 key = key[:-1]
   213                 key = key[:-1]
       
   214 
       
   215             if '_' in key :
       
   216                 key = key.replace('_', '-')
   214             
   217             
   215             if value is True :
   218             if value is True :
   216                 # flag attr
   219                 # flag attr
   217                 value = key
   220                 value = key
   218             
   221