Macro- and micro-cracking in one-dimensional elasticity