Bug report: 3D Surface hoverinfo='text' doesn't work

The code below doesn’t work after upgrading from plotly 2.7.0 to 3.4.2
I see only one random character instead of three lines of hover text. The same issue on the 3d Surface here:


y = df.index
n_rows = y.size
x = list(df)
n_cols = len(x)
z = df.values

text = [[’{: .2f}’.format(z[i, j]) + ‘
’ + ‘{: %b %Y}’.format(x[j]) + ‘
’ + ‘{: .2f}’.format(y[i]) for j in range(n_cols)] for i in range(n_rows)]
surface = go.Surface(
x=list(df),
y=df.index,
z=df.values,
showscale=False,
text=text,
hoverinfo=“text”
)