Existe-t-il un moyen simple de ne pas supprimer les espaces de début et le formatage dans un poème ?

salut @pinetree1111 :wave: bienvenue

je ne sais pas si tu considères cela comme “facile”, mais je le trouve facile car je les utilise occasionnellement dans mes messages lol.

tu peux utiliser   pour les espaces blancs :
comme ceci

hello world
 this is a line with a leading space
  this is a line with 2 leading spaces
   this is a line with 3 leading spaces

code :

hello world
 this is a line with a leading space
  this is a line with 2 leading spaces
    this is a line with 3 leading spaces

tu peux aussi mettre des espaces entre eux

hello world
  this is a line with 2 leading spaces
    this is a line with 4 leading spaces
      this is a line with 6 leading spaces

hello world
  this is a line with 2 leading spaces
    this is a line with 4 leading spaces
      this is a line with 6 leading spaces