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

quarto 1.4.551 causes docx table rendering issue on flextable #9157

Closed
datapython opened this issue Mar 21, 2024 · 3 comments
Closed

quarto 1.4.551 causes docx table rendering issue on flextable #9157

datapython opened this issue Mar 21, 2024 · 3 comments
Labels
bug Something isn't working docx Issues with the docx format needs-repro Issues that are blocked until reporter provides an adequate reproduction stale Issues open for 30+ days without providing a "working" reproducible example tables Issues with Tables including the gt integration

Comments

@datapython
Copy link

Bug description

My qmd file was rendered ok for docx including the flextable with 1.3.433 but only one problem of caption missing. After updated to 1.4.551, the caption started working, but the rendered table inside the docx was totally squeezed into a strip. By the way, this table is coded with gtsummary and converted into flextable for autofit the width of docx.

This was rendered with 1.3.433.
image

This was rendered with 1.4.551.
image

However, testing with mtcars by adding a column with long colname and long string value could not replicate the issue. At this time I cannot share my data.

RStudio Pro 2023.09.0
Ubuntu 22.04.3 LTS

Steps to reproduce

No response

Expected behavior

No response

Actual behavior

No response

Your environment

No response

Quarto check output

No response

@datapython datapython added the bug Something isn't working label Mar 21, 2024
@mcanouil
Copy link
Collaborator

mcanouil commented Mar 21, 2024

Unfortunately, there is nothing we can do with screenshots.
Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? Thanks.


You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````).
See https://quarto.org/bug-reports.html#small-is-beautiful-aim-for-a-single-document-with-10-lines.

If you have multiple files (and if it is absolutely required to have multiple files), please share as a Git repository.

RPython
````qmd
---
title: "Reproducible Quarto Document"
format: html
engine: knitr
---

This is a reproducible Quarto document.

```{r}
x <- c(1, 2, 3, 4, 5)
y <- c(1, 4, 9, 16, 25)

plot(x, y)
```

![An image](https://placehold.co/600x400.png)

The end.
````
````qmd
---
title: "Reproducible Quarto Document"
format: html
engine: jupyter
---

This is a reproducible Quarto document.

```{python}
import matplotlib.pyplot as plt

x = [1, 2, 3, 4, 5]
y = [1, 4, 9, 16, 25]

plt.plot(x, y)
plt.show()
```

![An image](https://placehold.co/600x400.png)

The end.
````

Additionally and if not already given, please share the output of quarto check within a code blocks (i.e., using three backticks ```txt), see https://quarto.org/bug-reports.html#check.

@mcanouil mcanouil added needs-repro Issues that are blocked until reporter provides an adequate reproduction tables Issues with Tables including the gt integration docx Issues with the docx format labels Mar 21, 2024
@mcanouil
Copy link
Collaborator

mcanouil commented Mar 21, 2024

Possibly related to:

Or even a duplicate of:

Copy link
Contributor

github-actions bot commented Apr 5, 2024

Thank you for using Quarto and reporting an issue!

Unfortunately, this issue is now considered stale because it has been opened since 14 days without providing a "working" reproducible example to help us investigate.
If you are still facing the issue, please review the "Bug Reports" guide on how to provide a fully reproducible example as a self-contained Quarto document or a link to a Git repository.
Without a reproducible example, it is unlikely that the issue will be addressed.

You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````).

````qmd
---
title: "Reproducible Quarto Document"
format: html
---

This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.

```{r}
plot(cars)
```

The end.
````

@github-actions github-actions bot added the stale Issues open for 30+ days without providing a "working" reproducible example label Apr 5, 2024
@cscheid cscheid closed this as not planned Won't fix, can't repro, duplicate, stale Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docx Issues with the docx format needs-repro Issues that are blocked until reporter provides an adequate reproduction stale Issues open for 30+ days without providing a "working" reproducible example tables Issues with Tables including the gt integration
Projects
None yet
Development

No branches or pull requests

3 participants