Fix Issue 12745 - [Ddoc] Underscore is removed from numbers

https://issues.dlang.org/show_bug.cgi?id=12745
Make this more obvious by using `(i > 0 && !isdigit(buf->data[i-1]))`.