Skip to content

Commit

Permalink
these are THE SAME
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Nov 30, 2023
1 parent 0d2e5ad commit b0ae9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/translate.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ translate_part <- function(xml, glossary_id, source_lang, target_lang, formality
## protect content inside square brackets ----
contain_square_brackets <- xml2::xml_find_all(
woolish$body,
'//*[contains(text(), "[") and contains(text(), "[")]'
'//*[contains(text(), "[") and contains(text(), "]")]'
)
if (length(contain_square_brackets) > 0) {
purrr::walk(contain_square_brackets, protect_squaries)
Expand Down

0 comments on commit b0ae9b3

Please sign in to comment.