Skip to content

Commit 9b4c954

Browse files
committed
Fixes for tests
1 parent e9234d2 commit 9b4c954

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

R/codebookLatex.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ codeBookItemTxtDescription <- function(x, ...) {
8080

8181

8282
if (txt$notes != "") {
83-
tex = "\\vskip 0.10in\n%s\n\\addcontentsline{lot}{table}{\\parbox{1.8in}{\\ttfamily{%s }} %s}\n\\vskip 0.10in\n\\emph{%s}\n\\vskip 0.10in"
83+
tex = "\\vskip 0.10in\n%s\n\\addcontentsline{lot}{table}{\\parbox{1.8in}{\\ttfamily{%s}} %s}\n\\vskip 0.10in\n\\emph{%s}\n\\vskip 0.10in"
8484
tex = sprintf(
8585
tex,
8686
texEscape(txt$description),
@@ -89,7 +89,7 @@ codeBookItemTxtDescription <- function(x, ...) {
8989
txt$notes
9090
)
9191
} else {
92-
tex = "\\vskip 0.10in\n%s\n\\addcontentsline{lot}{table}{\\parbox{1.8in}{\\ttfamily{%s }} %s}\n\\vskip 0.10in"
92+
tex = "\\vskip 0.10in\n%s\n\\addcontentsline{lot}{table}{\\parbox{1.8in}{\\ttfamily{%s}} %s}\n\\vskip 0.10in"
9393
tex = sprintf(
9494
tex,
9595
texEscape(txt$description),

R/tex.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ texEscape <- function(string) {
3434
if (is.null(string)) {
3535
return("")
3636
}
37-
s
37+
3838
string <- gsub("^ *(\\[)", "\\\\hspace\\*\\{0in\\}\\1", string)
3939
string <- gsub("([#$%&_])", "\\\\\\1", string)
4040
string <- gsub("[\u00A3\uFFE1]", "\\\\pounds", string)

R/theme.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ themeDefaultExcel <- function(
209209
digits_numeric = 2,
210210
one_per_sheet = FALSE,
211211
latex_round_percentages = TRUE,
212+
enforce_onehundred = FALSE,
212213
latex_headtext = "",
213214
latex_foottext = "",
214215
latex_table_align = "r",

0 commit comments

Comments
 (0)