AdaCore / learn

Sources for learn.adacore.com
https://learn.adacore.com
Creative Commons Attribution 4.0 International
92 stars 37 forks source link

code widget contains many blank lines #405

Open yannickmoy opened 4 years ago

yannickmoy commented 4 years ago

The size of the widget used to display compilable code does not always fit the code it contains, sometimes it has a huge number of blank lines, see e.g. the third widget on the page:

https://learn.adacore.com/labs/intro-to-ada/chapters/imperative_language.html

Robert-Tice commented 4 years ago

This is a side effect of PR #333.

The main.adb tab contains more code than the other tabs, which sets the minimum tab length to be the size of the main.adb tab code length. This is intended behavior.

yannickmoy commented 4 years ago

ok, looks weird but we can live with it!

Robert-Tice commented 4 years ago

I agree, it does look weird. We will keep this issue open as an enhancement to fix the UI problem created by the UX fix on #333