doxygen icon indicating copy to clipboard operation
doxygen copied to clipboard

semi-colon after a formula causes error

Open ajmay81 opened this issue 9 months ago • 1 comments

As requested https://github.com/doxygen/doxygen/issues/10552#issuecomment-2120461400 is reported here as it's own issue. Here is an example test.f90:

!> test doxygen
!>
!> A formula \f$A\f$; followed by a semi-colon
subroutine test
end subroutine test

which generates:

/host> doxygen Doxyfile 1>/dev/null
********************************************************************
Error in file /host/test.f90 line: 6, state: 10(ModuleBody)
********************************************************************
/host> doxygen --version
1.11.0

There is no such problem if the semi-colon is changed to a comma.

ajmay81 avatar May 20 '24 13:05 ajmay81

I've just pushed a proposed patch, pull request #10880

albert-github avatar May 20 '24 14:05 albert-github

Thanks very much. For now I can just add a space before the semi-colon to avoid the problem and use 1.11.0 release, but will revert back when the fix is released in an official version.

ajmay81 avatar May 20 '24 21:05 ajmay81

Code has been integrated in master on GitHub (please don't close the issue as this will be done at the moment of an official release).

albert-github avatar May 22 '24 07:05 albert-github