odfbackend : #0005278 : no need to escape color, highlight color and font size.

svn: r18403
This commit is contained in:
Serge Noiraud 2011-11-05 09:39:54 +00:00
parent 60202af9a6
commit c274c69821

View File

@ -122,20 +122,17 @@ class OdfBackend(DocBackend):
if tagtype not in self.SUPPORTED_MARKUP: if tagtype not in self.SUPPORTED_MARKUP:
return None return None
if ( tagtype == DocBackend.FONTCOLOR ): if ( tagtype == DocBackend.FONTCOLOR ):
return ('<text:span text:style-name=\"FontColor__%s__\">' % return ('<text:span text:style-name=\"FontColor__%s__\">' % value,
self.ESCAPE_FUNC()(value),
'</text:span>') '</text:span>')
elif ( tagtype == DocBackend.FONTFACE ): elif ( tagtype == DocBackend.FONTFACE ):
return ('<text:span text:style-name=\"FontFace__%s__\">' % return ('<text:span text:style-name=\"FontFace__%s__\">' %
self.ESCAPE_FUNC()(value), self.ESCAPE_FUNC()(value),
'</text:span>') '</text:span>')
elif ( tagtype == DocBackend.FONTSIZE ): elif ( tagtype == DocBackend.FONTSIZE ):
return ('<text:span text:style-name=\"FontSize__%s__\">' % return ('<text:span text:style-name=\"FontSize__%s__\">' % value,
self.ESCAPE_FUNC()(value),
'</text:span>') '</text:span>')
else: #elif ( tagtype == DocBackend.HIGHLIGHT ): else: #elif ( tagtype == DocBackend.HIGHLIGHT ):
return ('<text:span text:style-name=\"FontHighlight__%s__\">' % return ('<text:span text:style-name=\"FontHighlight__%s__\">' % value,
self.ESCAPE_FUNC()(value),
'</text:span>') '</text:span>')
def format_link(self, value): def format_link(self, value):