Skip to content

Commit

Permalink
implementing srichter comments
Browse files Browse the repository at this point in the history
  • Loading branch information
niharikasingh committed Oct 4, 2019
1 parent c0893f2 commit e36316a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/z3c/rml/paraparser.py
Expand Up @@ -189,8 +189,8 @@ def _apply_texttransform(self, style):
if not getattr(style, 'textTransform', False):
return
frag = self._stack[-1]
if hasattr(style, 'textTransform') and hasattr(frag, 'text'):
setattr(frag, 'textTransform', getattr(style, 'textTransform'))
if hasattr(frag, 'text'):
frag.textTransform = style.textTransform

def start_span(self, attr):
reportlab.platypus.paraparser.ParaParser.start_span(self, attr)
Expand All @@ -211,7 +211,6 @@ def start_para(self, attr):
reportlab.platypus.paraparser.ParaParser.start_para(self, attr)
self._apply_underline(self._style)
self._apply_strike(self._style)
self._apply_texttransform(self._style)

def start_pagenumber(self, attributes):
self.startDynamic(attributes, PageNumberFragment)
Expand Down

0 comments on commit e36316a

Please sign in to comment.