quarto-dev / quarto-dev/quarto
Copy-pasting table from MS Word to Quarto (Visual Editor) duplicates rows and columns
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 645
- Forks
- 62
- Avg merge
- 17h 42m
- Merged PRs (30d)
- 13
Description
(Copied from https://github.com/rstudio/rstudio/issues/13806)
System details
RStudio Edition : Desktop
RStudio Version : 2023.12.0+170
OS Version : Windows 11
R Version : 4.3.1
MS Office : 365 (18.2306.1061.0)
Steps to reproduce the problem
- Open a Microsoft Word-document with a simple table (e.g. 2x2 like below). Copy the table.
|-----|-----|
| A | B |
|-----|-----|
| C | D |
|-----|-----|
- Create an empty Quarto document. Use Visual Editor.
- Paste the table.
Describe the problem in detail
Observe that rows and columns are duplicated. This occurs both in release version and latest daily build.
+-----+-----+-----+-----+----+
| | | | | |
+-----+-----+-----+-----+----+
| | A | | B | |
+-----+-----+-----+-----+----+
| | | | | |
+-----+-----+-----+-----+----+
| | C | | D | |
+-----+-----+-----+-----+----+
| | | | | |
+-----+-----+-----+-----+----+
Contrast this with a HTML-based table from a website which works as intended.
Describe the behavior you expected
A pasted table should contain as many rows and columns as in the original.
- I have read the guide for submitting good bug reports.
- I have installed the latest version of RStudio, and confirmed that the issue still persists.
- [-] If I am reporting an RStudio crash, I have included a diagnostics report.
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the problem in an empty Quarto document using the Visual Editor: paste a simple table copied from Microsoft Word, then compare it with the expected row and column count. Trace the Visual Editor's paste handling for Word table content and verify that the pasted table preserves the original dimensions without duplicated rows or columns.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100