OfficeDev / OfficeDev/office-js

Line spacing issue when pasting the content in word using WOPI.

Open
#5,331 4 comments 0 reactions 1 assignee View on GitHub

@wangyun-microsoft is already working on this.

Since Jan 31, 2025.

Area: Word Type: product bug
Dominant language
JavaScript
Stars
845
Forks
124
Avg merge
3d 17h
Merged PRs (30d)
1

Description

We are using Office.context.document.setSelectedDataAsync() method to paste the content into a word file. Whenever the content is pasted extra line spacing is getting added to every line which can be seen in the below screenshots.
Every time I edit and save the document, line spacing is getting increased.

I am also attaching the code snipper for review.

Image

Image

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.