External Issue: Room for improvement: chpldoc formats 'typeexpr' differently for 'type t = typeexpr' and 'var x: typeexpr'

17414, "cassella", "Room for improvement: chpldoc formats 'typeexpr' differently for 'type t = typeexpr' and 'var x: typeexpr'", "2021-03-17T15:00:42Z"

chpldoc formats typeexpr differently for type t = typeexpr and var x: typeexpr for some typeexprs. This is because printingType is false for the former, but true for the latter. This results in

type t = 2*int;
var x: 2*int;

param w = 32;
type t2 = int(w/2);
var x2: int(w/2);

being formatted

.. type:: type t = 2 * int

.. data:: var x: 2*(int)

.. data:: param w = 32

.. type:: type t2 = int(w / 2)

.. data:: var x2: int(w/2)

I think the type expressions in the type lines should be formatted the same as the ones in the var lines.

Originally posted by @cassella in https://github.com/chapel-lang/chapel/issues/17372#issuecomment-792564967