Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Word API automatically inserts line break but only after the first Paragraph #1284

Closed
1 of 3 tasks
algomaster99 opened this issue Jul 17, 2020 · 1 comment
Closed
1 of 3 tasks
Assignees
Labels
Area: Word Issue related to Word add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback

Comments

@algomaster99
Copy link

algomaster99 commented Jul 17, 2020

Message from office-js bot:
We’re closing this issue because it has been inactive for a long time. We’re doing this to keep the issues list manageable and useful for everyone. If this issue is still relevant for you, please create a new issue.
Thank you for your understanding and continued feedback.

Expected Behavior

The APIs should have either inserted a LineBreak after every heading or shouldn't have inserted a LineBreak at all

Current Behavior

A LineBreak after first `Heading is inserted even though it isn't specified in the program.

Steps to Reproduce, or Live Example

Script Lab

  1. Click Run
  2. A LineBreak after the first Heading is inserted even though it isn't specified in the program.

Context

I need to use insertText. I can't use insertParagraph in my application because I have to mark some content controls in the paragraph too so I render them word by word or sentence by sentence.

Your Environment

  • Platform [PC desktop, Mac, iOS, Office Online]: PC desktop
  • Host [Excel, Word, PowerPoint, etc.]: Word
  • Office version number: 18.2005.1191.0
  • Operating System: Windows 10 Pro 1903

Useful logs

  • Console errors
  • Screenshots
    demo
  • Test file (if only happens on a particular file)
@ghost ghost added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Jul 17, 2020
@algomaster99 algomaster99 changed the title Word API inserts automatically insert line break but only after the first Paragraph Word API automatically inserts line break but only after the first Paragraph Jul 17, 2020
@algomaster99
Copy link
Author

This doesn't happen on Word on the web though.
demo-web

algomaster99 added a commit to accordproject/cicero-word-add-in that referenced this issue Jul 20, 2020
* A workaround for OfficeDev/office-js#1284

Signed-off-by: Aman Sharma <mannu.poski10@gmail.com>
algomaster99 added a commit to accordproject/cicero-word-add-in that referenced this issue Jul 20, 2020
…ment

* A workaround for OfficeDev/office-js#1284

Signed-off-by: Aman Sharma <mannu.poski10@gmail.com>
algomaster99 added a commit to accordproject/cicero-word-add-in that referenced this issue Jul 20, 2020
…ment

* A workaround for OfficeDev/office-js#1284

Signed-off-by: Aman Sharma <mannu.poski10@gmail.com>
@lindalu-MSFT lindalu-MSFT added Area: Word Issue related to Word add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP labels Jul 23, 2020
@gergzk gergzk closed this as not planned Won't fix, can't repro, duplicate, stale Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Word Issue related to Word add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback
Projects
None yet
Development

No branches or pull requests

6 participants