Skip to content

Italics or bold at start or end of string #94

Description

@mayeulk

Sometimes, some spaces are italicized (or bold) in the source pptx file. In this case, if text starts or end with a horizontal space,
then the _ or __ will not have the desired effect; hence better conversion is possible by fixing the orginal python code at:

def get_accent(self, text):
return ' _' + text + '_ '
def get_strong(self, text):
return ' __' + text + '__ '
:

 def get_accent(self, text):
   return ' _' + text.strip(' \t') + '_ '
 def get_strong(self, text):
   return ' __' + text.strip(' \t') + '__ '

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions