Skip to content

Commit

Permalink
Change cmidrule regex to non-greedy (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsr-p authored Sep 24, 2024
1 parent 79cd3c5 commit 8d204a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/theme_tt.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ theme_tabular <- function(x,
tab <- lines_drop(tab, regex = "tabularray inner open", position = "equal")
tab <- lines_drop(tab, regex = "tabularray inner close", position = "equal")
tab <- lines_drop(tab, regex = "^colspec=\\{", position = "equal")
tab <- gsub("cmidrule\\[(.*)\\]", "cmidrule(\\1)", tab)
tab <- gsub("cmidrule\\[(.*?)\\]", "cmidrule(\\1)", tab)
tab <- gsub("\\{tblr\\}\\[*", "{tabular}", tab)
tab <- gsub("\\{talltblr\\}\\[", "{tabular}", tab)
tab <- gsub("\\{talltblr\\}", "{tabular}", tab)
Expand Down

0 comments on commit 8d204a0

Please sign in to comment.