INTEG-270: Summary on content activity is pushed to new line after a cha...

...racter in bold/italic/underline

Fix description:
  - repair the function to get summary lines