Fwd: -sc -cdb misses that there are already asterisks in the comments

Santiago Vila <[email protected]> Mon, 10 Jul 2023 18:45:56 +0200
Newsgroups gmane.comp.gnu.indent.bugs
Message-ID <[email protected]>
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.

-------- Mensaje reenviado --------
Asunto: -sc -cdb misses that there are already asterisks in the comments
Fecha: Tue, 02 Aug 2016 14:03:57 +0200
De: Wouter Verhelst <[email protected]>
Para: Debian Bug Tracking System <[email protected]>

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.

[...]