In English, we often express the imperfect tense (a past habitual action) using the modal "would":
When I was young, I would eat sugar.
I can't find examples of the Spanish equivalent:
Cuando era joven, comería azúcar.
But just using the Spanish imperfect seems like it might be wrong:
Cuando era joven, comía azúcar.
... seems to translate literally as "When I was young, I was eating sugar", which doesn't seem to clarify that it was a habitual action rather than a one-time thing.
So, how would you say "When I was young, I would eat sugar" in Spanish?