Fix a bug when formatting doc for methods
Remove if statement that was generating a problem with additional documentation