Skip to content

Commit

Permalink
Got Rinke's update on a missing pair of brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
iherman committed Nov 4, 2014
1 parent e76b954 commit 7ab5b65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyRdfa/host/html5.py
Expand Up @@ -12,8 +12,8 @@
"""

"""
$Id: html5.py,v 1.14 2013-03-01 12:29:24 ivan Exp $
$Date: 2013-03-01 12:29:24 $
$Id: html5.py,v 1.15 2014-11-04 13:18:48 ivan Exp $
$Date: 2014-11-04 13:18:48 $
"""
try :
from functools import reduce
Expand Down Expand Up @@ -82,7 +82,7 @@ def _format_test(string) :

# Now come the special cases:-(
# Check first for the duration stuff, that is the nastiest.
if len(string) > 2 and string[0] == 'P' or (string [0] == '-' and string[1] == 'P') :
if len(string) > 2 and (string[0] == 'P' or (string [0] == '-' and string[1] == 'P')) :
# this is meant to be a duration type
# first of all, get rid of the leading '-' and check again
if string[0] == '-' :
Expand Down

0 comments on commit 7ab5b65

Please sign in to comment.