DEV Community

aronsantha
aronsantha

Posted on • Edited on

> Remove formatting for test data

Use <pre> tags during development to print data with unformatted text. It will:

  • display a fixed-width font, and
  • preserve spaces and line breaks.

FYI, most browsers use these styles to format <pre> tags:

  display: block;
  font-family: monospace;
  white-space: pre;
  margin-top: 1em;
  margin-bottom: 1em;
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Sentry image

Make it make sense

Only the context you need to fix your broken code with Sentry.

Start debugging →

👋 Kindness is contagious

Dive into this thoughtful article, cherished within the supportive DEV Community. Coders of every background are encouraged to share and grow our collective expertise.

A genuine "thank you" can brighten someone’s day—drop your appreciation in the comments below!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found value here? A quick thank you to the author makes a big difference.

Okay