Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[ENHANCEMENT] Support soft-breaks in text formatting #805

Closed
1 of 4 tasks
memorsolutions opened this issue Jul 24, 2020 · 1 comment · Fixed by #806
Closed
1 of 4 tasks

[ENHANCEMENT] Support soft-breaks in text formatting #805

memorsolutions opened this issue Jul 24, 2020 · 1 comment · Fixed by #806

Comments

@memorsolutions
Copy link
Contributor

Category

  • Enhancement
  • Bug
  • Question
  • Documentation gap/issue

Version

Please specify what version of the library you are using: [3.3.0 latest master branch]

Please specify what version(s) of PowerPoint you are targeting: [2016 and up]

If you are not using the latest release, please update and see if the issue is resolved before submitting an issue.

Expected / Desired Behavior / Question

Currently there is no way to add text that uses a soft-break (i.e. using in PowerPoint) to add text on the next line without beginning a new paragraph (bullet, etc.). Desire a means to produce something like this:

  • This is a bullet with a
    continuation line via soft-break

Observed Behavior

Only hard-breaks are currently supported.

Suggested implementation is to add a a new option to TextOptions named "softBreakBefore". Setting this option will cause the addition of a "<a:br/>" element before the text run that gets created for the IText item.

I have a PR implementing this that I will submit.

@gitbrent gitbrent linked a pull request Dec 26, 2020 that will close this issue
@gitbrent gitbrent added this to the 3.5.0 milestone Feb 26, 2021
@gitbrent
Copy link
Owner

This will be available in v3.5.0 thanks to @memorsolutions via Pull #806

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants