utils: Append period after last line in more cases
After the last line in a block, gi-docgen appends a period. Obviously,
this should not happen when there is already a period. This is handled
by testing for isalpha()
on the last character.
However, periods should also be inserted after links or inline code. Fix this by broadening the cases in which a period is appended.
Fixes #181
See https://docs.gtk.org/glib/func.strdelimit.html (delimiters
parameter) and https://docs.gtk.org/glib/func.strconcat.html (string1
parameter) for examples where a period would need to be appended.
I cannot think of more instances where a period would break syntax, but those would be easy to add to the exceptions in this MR.
Edited by Matthijs Velsink