I have a table column where I'm centring all the numbers on the decimal using `dcolumn` and I'm finding that if a number is in brackets and no decimal point is present then it will align on the right edge of the last bracket instead. Without brackets everything is correctly aligned. Is there an easy way to get this to align properly? A simplified version of my table is below:

```
\documentclass{article}
\usepackage{dcolumn}

\begin{document}

\begin{tabular}{D{.}{.}{-1}}
    [0]\\\relax
    [1.23]\\\relax
    [12.34]
\end{tabular}

\end{document}

```

This is what is looks like with and without the brackets. I want the right column to be aligned like the left one.

[![table alignment bug](https://i.stack.imgur.com/4nFtb.png)](https://i.stack.imgur.com/4nFtb.png)

Any help would be greatly appreciated.