Skip to content

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

Description

@aronatkins

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.

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions