barunsaha commited on
Commit
b655834
1 Parent(s): 15da154

Center-align the text below icons

Browse files
Files changed (1) hide show
  1. helpers/pptx_helper.py +1 -0
helpers/pptx_helper.py CHANGED
@@ -551,6 +551,7 @@ def _handle_icons_ideas(
551
  text_frame = text_box.text_frame
552
  text_frame.text = accompanying_text
553
  text_frame.word_wrap = True
 
554
 
555
  # Center the text vertically
556
  text_frame.vertical_anchor = pptx.enum.text.MSO_ANCHOR.MIDDLE
 
551
  text_frame = text_box.text_frame
552
  text_frame.text = accompanying_text
553
  text_frame.word_wrap = True
554
+ text_frame.paragraphs[0].alignment = pptx.enum.text.PP_ALIGN.CENTER
555
 
556
  # Center the text vertically
557
  text_frame.vertical_anchor = pptx.enum.text.MSO_ANCHOR.MIDDLE