reportlab/platypus/paraparser.py
changeset 115 49b2fae9ea60
parent 113 2c20ecb9015e
child 119 b4dc589c8364
--- a/reportlab/platypus/paraparser.py	Tue Apr 11 15:41:04 2000 +0000
+++ b/reportlab/platypus/paraparser.py	Tue Apr 11 15:58:39 2000 +0000
@@ -261,9 +261,9 @@
 		if frag.sub:
 			frag.rise = -frag.fontSize*subFraction
 			frag.fontSize = max(frag.fontSize-sizeDelta,3)
-		elif frag.sub:
+		elif frag.super:
 			frag.rise = frag.fontSize*superFraction
-			frag.fontSize = min(frag.fontSize-sizeDelta,3)
+			frag.fontSize = max(frag.fontSize-sizeDelta,3)
 
 		if frag.greek: frag.fontName = 'symbol'
 		# bold, italic, and underline
@@ -312,7 +312,7 @@
 	his men, for they perished through their own sheer folly in eating
 	the cattle of the Sun-god Hyperion; so the god prevented them from
 	ever reaching home. Tell me, too, about all these things, O daughter
-	of Jove, from whatsoever source you may know them.
+	of Jove, from whatsoever source you<super>1</super> may know them.
 	'''
 	text = cleanBlockQuotedText(text)
 	rv = _parser.parse(text,style)
@@ -321,4 +321,4 @@
 			print l
 	else:
 		for l in rv:
-			print l.fontName,l.fontSize,l.textColor,l.bold, l.text[:25]
+			print l.fontName,l.fontSize,l.textColor,l.bold, l.rise, l.text[:25]