Trim documentation string to avoid trailing empty line.