Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | lineOfText | |||
logical, | intent(in), | optional | :: | isBold |
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
SUBROUTINE writeTextLine(lineOfText,isBold)
! SUBROUTINE INFORMATION:
! AUTHOR Jason Glazer
! DATE WRITTEN April 2007
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Insert a subtitle into the current report
IMPLICIT NONE
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*),INTENT(IN) :: lineOfText
LOGICAL,INTENT(IN),OPTIONAL :: isBold
! SUBROUTINE PARAMETER DEFINITIONS:
CHARACTER(len=*), PARAMETER :: fmta="(A)"
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: iStyle
LOGICAL :: useBold
IF (Present(isBold)) THEN
useBold = isBold
ELSE
useBold = .FALSE.
END IF
DO iStyle = 1, numStyles
SELECT CASE (TableStyle(iStyle))
CASE (tableStyleComma,tableStyleTab,tableStyleFixed)
WRITE(TabularOutputFile(iStyle),fmta) TRIM(lineOfText)
CASE (tableStyleHTML)
IF (useBold) THEN
WRITE(TabularOutputFile(iStyle),fmta) '<b>'// TRIM(lineOfText) // '</b><br><br>'
ELSE
WRITE(TabularOutputFile(iStyle),fmta) TRIM(lineOfText) // '<br>'
END IF
CASE (tableStyleXML)
IF (LEN_TRIM(lineOfText) .NE. 0) THEN
WRITE(TabularOutputFile(iStyle),fmta) '<note>' // TRIM(lineOfText) // '</note>'
END IF
END SELECT
END DO
END SUBROUTINE writeTextLine