Skip to content

Commit 62afdbe

Browse files
authored
[rjournal] insert newline at correct place in template (#388)
1 parent 4afb44c commit 62afdbe

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
rticles 0.20
22
---------------------------------------------------------------------
33

4+
- fix an issue with `rjournal_article()` template to insert newline in author's block only if a field exist (thanks, @huizezhang-sherry, #387)
45

56
rticles 0.19
67
---------------------------------------------------------------------

inst/rmarkdown/templates/rjournal/resources/template.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
$author.affiliation2$\\%
2626
$for(author.address2)$$author.address2$$sep$\\ $endfor$\\
2727
$endif$%
28-
$if(author.url)$$author.url$$endif$%
29-
$if(author.orcid)$\\\textit{ORCiD: \href{https://orcid.org/$author.orcid$}{$author.orcid$}}$endif$%
30-
$if(author.email)$\\$author.email$$endif$
28+
$if(author.url)$$author.url$\\$endif$%
29+
$if(author.orcid)$\textit{ORCiD: \href{https://orcid.org/$author.orcid$}{$author.orcid$}}\\$endif$%
30+
$if(author.email)$$author.email$$endif$%
3131
}
3232

3333
$endfor$

0 commit comments

Comments
 (0)