Skip to content

Commit 07369a9

Browse files
committed
fix(biblatex): no newline when no doi/url/eprint
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
1 parent 3d004dc commit 07369a9

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

preamble/references/doi-eprint-url.tex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313
%% -> changed from /usr/share/texmf-dist/tex/latex/biblatex-ext/ext-standard.bbx
1414
\renewbibmacro*{doi+eprint+url}{%
1515
\setlength{\parskip}{0pt} % fix spacing of \fullcite in the body text of the document
16-
\printtext{\par} % doi+eprint+url are printed on a new line
16+
\ifboolexpr{
17+
test {\iffieldundef{doi}} and
18+
test {\iffieldundef{url}} and
19+
test {\iffieldundef{eprint}} and
20+
test {\iffieldundef{github}} and
21+
test {\iffieldundef{gitlab}}
22+
}{}{\printtext{\par}} % doi+eprint+url are printed on a new line
1723
\footnotesize % make it small, so it (ideally) fits on one line
1824
\raggedright % right-align the text (so that there are no overfull hboxes for long URLs)
1925
\renewcommand{\newunitpunct}{\space} % no periods on this line

0 commit comments

Comments
 (0)