The dirtree package uses a . followed by a whitespace as a sign to end a node. See documentation, page 2
This usually works pretty good, but I'd like to print correct format e.g. DD.MM.YYYY as a node for my DirTree. This causes a problem as the character sequence e.g.[SPACE] seems to be interpreted as the termination sequence.
The error messages read Use of \next doesn't match its definition and Undefined control sequence
Is there a way to print [dot][space] without attempting to end the node? If there is none, are there other characters which can act as a space?
MWE to quickly reproduce:
\documentclass[]{article}
\usepackage{dirtree}
\begin{document}
\dirtree{%
.1 ROOT.
.2 Level 2.
.2 Correct format e.g. DD.MM.YYYY.
}
\end{document}
The question file extensions in dirtree is related but the OP can remove the space after the dot, which I can not.

~seems to work as well and keeps the code a bit more simple – Nijin22 May 20 '16 at 07:05~prevent line breaking at that particular space. On the other hand, I don't know whether line breaking is feasible at all inside the\dirtree. – Henri Menke May 23 '16 at 06:59