Did the church actually teach the earth was flat (middle~late middle ages)?

by -TheRightTree-

I know that most scholars knew that the earth was round from ancient greeks, and that knowledge didn't disappear after it.

But, I cannot find any resources on if the Catholic Church actually taught that the earth was flat, even though many teachers (in my country) claim they did. Maybe it's the T-O map? But my understanding is that those weren't used for navigation and weren't a representation of the actual earth.

And, if possible, how much did they suppress science? I read somewhere that the church actually built many universities and pushed progress on math.

-Thanks in advance!

jelvinjs7