#833313 -sc -cdb misses that there are already asterisks in the comments

Package:
indent
Source:
indent
Description:
C language source code formatting program
Submitter:
Wouter Verhelst
Date:
2023-07-10 17:21:02 UTC
Severity:
normal
Tags:
#833313#5
Date:
2016-08-02 12:03:57 UTC
From:
To:
Hi,

input:

int main(void) {
	/* Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ut
	 * sodales turpis, scelerisque auctor erat. In lobortis purus ac
	 * fringilla ultricies. Vivamus ut odio a est convallis aliquet nec ac
	 * sem. In posuere dolor a fermentum bibendum. Aliquam non massa sed
	 * augue blandit ultricies nec id velit. Vestibulum fringilla mi vel
	 * varius malesuada. Nunc vel libero et dui pharetra lobortis at eget
	 * erat.*/
	return 0;
}

running indent -sc -cdb over that produces:

int
main (void)
{
  /*
   * Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ut
   * * sodales turpis, scelerisque auctor erat. In lobortis purus ac
   * * fringilla ultricies. Vivamus ut odio a est convallis aliquet nec ac
   * * sem. In posuere dolor a fermentum bibendum. Aliquam non massa sed
   * * augue blandit ultricies nec id velit. Vestibulum fringilla mi vel
   * * varius malesuada. Nunc vel libero et dui pharetra lobortis at eget
   * * erat.
   */
  return 0;
}

the extra vertical line of asterisks here is obviously superfluous, and should
not appear.

#833313#12
Date:
2023-07-10 16:45:56 UTC
From:
To:
Hello.

A long time ago, I received the following report from the Debian bug system.

I've just checked and it still happens in indent 2.2.13 (which I plan to
upload for Debian unstable soon).

Note: There are a few more indent bugs here, already forwarded, it would be
wonderful if you could take a look at some of them before the next release:

https://bugs.debian.org/cgi-bin/pkgreport.cgi?src=indent

Thanks.

Package: indent
Version: 2.2.11-4
Severity: normal

Hi,

input:

int main(void) {
	/* Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ut
	 * sodales turpis, scelerisque auctor erat. In lobortis purus ac
	 * fringilla ultricies. Vivamus ut odio a est convallis aliquet nec ac
	 * sem. In posuere dolor a fermentum bibendum. Aliquam non massa sed
	 * augue blandit ultricies nec id velit. Vestibulum fringilla mi vel
	 * varius malesuada. Nunc vel libero et dui pharetra lobortis at eget
	 * erat.*/
	return 0;
}

running indent -sc -cdb over that produces:

int
main (void)
{
   /*
    * Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ut
    * * sodales turpis, scelerisque auctor erat. In lobortis purus ac
    * * fringilla ultricies. Vivamus ut odio a est convallis aliquet nec ac
    * * sem. In posuere dolor a fermentum bibendum. Aliquam non massa sed
    * * augue blandit ultricies nec id velit. Vestibulum fringilla mi vel
    * * varius malesuada. Nunc vel libero et dui pharetra lobortis at eget
    * * erat.
    */
   return 0;
}

the extra vertical line of asterisks here is obviously superfluous, and should
not appear.

[...]

#833313#15
Date:
2023-07-10 16:45:56 UTC
From:
To:
Hello.

A long time ago, I received the following report from the Debian bug system.

I've just checked and it still happens in indent 2.2.13 (which I plan to
upload for Debian unstable soon).

Note: There are a few more indent bugs here, already forwarded, it would be
wonderful if you could take a look at some of them before the next release:

https://bugs.debian.org/cgi-bin/pkgreport.cgi?src=indent

Thanks.

Package: indent
Version: 2.2.11-4
Severity: normal

Hi,

input:

int main(void) {
	/* Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ut
	 * sodales turpis, scelerisque auctor erat. In lobortis purus ac
	 * fringilla ultricies. Vivamus ut odio a est convallis aliquet nec ac
	 * sem. In posuere dolor a fermentum bibendum. Aliquam non massa sed
	 * augue blandit ultricies nec id velit. Vestibulum fringilla mi vel
	 * varius malesuada. Nunc vel libero et dui pharetra lobortis at eget
	 * erat.*/
	return 0;
}

running indent -sc -cdb over that produces:

int
main (void)
{
   /*
    * Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ut
    * * sodales turpis, scelerisque auctor erat. In lobortis purus ac
    * * fringilla ultricies. Vivamus ut odio a est convallis aliquet nec ac
    * * sem. In posuere dolor a fermentum bibendum. Aliquam non massa sed
    * * augue blandit ultricies nec id velit. Vestibulum fringilla mi vel
    * * varius malesuada. Nunc vel libero et dui pharetra lobortis at eget
    * * erat.
    */
   return 0;
}

the extra vertical line of asterisks here is obviously superfluous, and should
not appear.

[...]