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

URL present as wrapped and too compact with underlines (Quarto 1.4) #1509

Closed
aronatkins opened this issue Dec 14, 2023 · 0 comments · Fixed by #1537
Closed

URL present as wrapped and too compact with underlines (Quarto 1.4) #1509

aronatkins opened this issue Dec 14, 2023 · 0 comments · Fixed by #1537

Comments

@aronatkins
Copy link

Using gt-0.10.0, the presentation of URLs in tables overlaps with wrapped values. This may be a Quarto issue, but @rich-iannone suggested it get filed here.

---
title: gt URLs
---

```{r libraries}
#| echo: false

library(gt)
```

```{r prepare}
#| echo: false

df <- data.frame(
  title = c(
    "this is the first title",
    "how.about.a.second.title"
  ),
  url = c(
    "https://example.com/this/url/is/really/really/long/but/we/still/want/its/link/included/in/the/table/even/though/this/is/ridiculous",
    "https://example.com/another/very/long/url/that/is/not/the/first"
  )
)
```

```{r present}
#| echo: false
gt(df) |>
  fmt_url(columns = "url", target = "_blank") |>
  cols_label(
    title = "Title",
    url = "URL"
  )

```

As rendered with Quarto 1.3.450, the table scrolls:

image

As rendered with Quarto 1.4.518, the table cells are wrapped but the underlines URLs overlap with the wrapped line:

image

Session info

End the reproducible example with a call to sessionInfo() in the same session (e.g. reprex(session_info = TRUE)) and include the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment