docs/userguide/ch5_paragraphs.py
branchpy33
changeset 3723 99aa837b6703
parent 3721 0c93dd8ff567
child 3811 f7eb60441a60
equal deleted inserted replaced
3722:29c11b905751 3723:99aa837b6703
   186 from reportlab.platypus.paraparser import _addAttributeNames, _paraAttrMap, _bulletAttrMap
   186 from reportlab.platypus.paraparser import _addAttributeNames, _paraAttrMap, _bulletAttrMap
   187 
   187 
   188 def getAttrs(A):
   188 def getAttrs(A):
   189     _addAttributeNames(A)
   189     _addAttributeNames(A)
   190     S={}
   190     S={}
   191     for k, v in list(A.items()):
   191     for k, v in A.items():
   192         a = v[0]
   192         a = v[0]
   193         if a not in S:
   193         if a not in S:
   194             S[a] = k
   194             S[a] = k
   195         else:
   195         else:
   196             S[a] = "%s, %s" %(S[a],k)
   196             S[a] = "%s, %s" %(S[a],k)