fortranfixed `@verbatim` doesn't remove "!>"
Author: hdtoddCreated Sep 9, 2026Updated Sep 13, 2026
Labelsbugfixed but not releasedFortranhas pull request
Describe the bug
Generating .man output with doxygen 1.19.0 (8e4c3580be37cd8afb58d653c895a93ce353305c)
In a .f08 (=fortranfixed) file, @verbatim doesn't remove the "!>" comment characters before the text.
Screenshots
This source file
!>@brief read x, y coordinates from standard input
!>
!>This subroutine reads a pair of x and y coordinates from standard input. It
!>will verify that the input format is correct. The application will stop if
!>that is not the case (exit code 3). If there is no more input, this will be
!>conveyed via the `istat` argument.
!>
!>From https://github.com/gjbex/Fortran-MOOC/blob/master/docs/doxygen.md
!>@param[out] x coordinate
!>@param[out] y coordinate
!>@param[out] istat is 0 upon succesful read, `iostat_end` when
!> no input remains
!>@verbatim
!>I'd like to add some additional description of the parameters here,
!>and format it so I can align columns:
!> l,m array index
!> 0,0 0
!> 1,0 1,1 1 2
!> 2,0 2,1 2,2 3 4 5
!> 3,0 3,1 3,2 3,2 6 7 8 9
!>@endverbatim
!>but \@verbatim doesn't strip off the "!>" (AND, how do I get rid of the inserted blank at the start of this line)
!>@author H. D. Todd (and wouldn't it be better to have this appear under the major heading "Author", below, rather than as a subheading, indented? Keep the author info all in one place)
subroutine get_coordinates(x, y, istat)
use, intrinsic :: iso_fortran_env, only : input_unit, error_unit
implicit none
real(kind=DP), intent(out) :: x, y
integer, intent(out) :: istat
character(len=1024) :: msg
read (unit=input_unit, fmt=*, iostat=istat, iomsg=msg) x, y
if (istat == iostat_end) return
if (istat /= 0) then
write (unit=error_unit, fmt='(2A)') &
'error: ', msg
stop 3
end if
end subroutine get_coordinatesproduces this output
.TH "ex.f08" 3 "Version 2.0" "TstNorLeg" \" -*- nroff -*-
.ad l
.nh
.SH NAME
ex.f08
.SH SYNOPSIS
.br
.PP
.SS "Functions/Subroutines"
.in +1c
.ti -1c
.RI "subroutine \fBget_coordinates\fP (x, y, istat)"
.br
.RI "read x, y coordinates from standard input "
.in -1c
.SH "Function/Subroutine Documentation"
.PP
.SS "subroutine get_coordinates (real(kind=dp), intent(out) x, real(kind=dp), intent(out) y, integer, intent(out) istat)"
.PP
read x, y coordinates from standard input This subroutine reads a pair of x and y coordinates from standard input\&. It will verify that the input format is correct\&. The application will stop if that is not the case (exit code 3)\&. If there is no more input, this will be conveyed via the \fRistat\fP argument\&.
.PP
From https://github.com/gjbex/Fortran-MOOC/blob/master/docs/doxygen.md
.PP
\fBParameters\fP
.RS 4
\fIx\fP coordinate
.br
\fIy\fP coordinate
.br
\fIistat\fP is 0 upon succesful read, \fRiostat_end\fP when no input remains
.PP
.nf
!>I'd like to add some additional description of the parameters here,
!>and format it so I can align columns:
!> l,m array index
!> 0,0 0
!> 1,0 1,1 1 2
!> 2,0 2,1 2,2 3 4 5
!> 3,0 3,1 3,2 3,2 6 7 8 9
!>
.fi
.PP
but @verbatim doesn't strip off the "!>" (AND, how do I get rid of the inserted blank at the start of this line)
.RE
.PP
\fBAuthor\fP
.RS 4
H\&. D\&. Todd (and wouldn't it be better to have this appear under the major heading "Author", below, rather than as a subheading, indented? Keep the author info all in one place)
.RE
.PP
.PP
Definition at line \fB25\fP of file \fBex\&.f08\fP\&.
.SH "Author"
.PP
Generated automatically by Doxygen for TstNorLeg from the source code\&.To Reproduce
Reproduced from the above .f08 code.
Expected behavior
The comment characters "!>" should be removed from the line before being copied to the output file
Version 1.19.0 (8e4c3580be37cd8afb58d653c895a93ce353305c)
Running on Raspberry Pi / Debian 13 (Trixie)
Distributor ID: Debian
Description: Debian GNU/Linux 13 (trixie)
Release: 13
Codename: trixieSource: doxygen/doxygen