# Removing period after DOI using biblatex

This question is very related to the following example.

Remove period ONLY after doi and url in bibliography in model5-names.bst (elsarticle.cls)

I would like to remove the period after the DOI, but not after the year, in case the bibliographic item is missing the DOI number, using biblatex.

For example (taken from the above link),

Kanizsa, G. (1976). Subjective contours. Scientific American, 234(4), 48–52.

and

Kanizsa, G. (1976). Subjective contours. Scientific American, 234(4), 48–52. doi:123456789

but not

Kanizsa, G. (1976). Subjective contours. Scientific American, 234(4), 48–52. doi:123456789.

MWE:

\documentclass{article}

\usepackage[
backend = biber,
style = authortitle,
]{biblatex}

\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{a,
author = {Lily},
title = {Trees},
journaltitle = {Journal of Trees},
year = {2015},
}

@article{b,
author = {John},
title = {Flowers},
journaltitle = {Journal of Flowers},
year = {2015},
doi = {17.7-31893.23},
}
\end{filecontents*}

\begin{document}
\nocite{*}
\printbibliography
\end{document}


\renewcommand*{\finentrypunct}{\ifboolexpr{togl {bbx:doi} and not test {\iffieldundef{doi}}}{}{\addperiod}}

• Isn't the boolean toggle? Jul 23 '17 at 17:30
• @Bernard Within an \ifboolexpr the keywords are togl, bool and test. So togl is the correct keyword for a toggle defined via \newtoggle{bbx:doi}. Jul 24 '17 at 6:00