The Mudcat Café TM
Thread #137789   Message #3152620
Posted By: Jack Campin
12-May-11 - 05:34 AM
Thread Name: Mudcat rewriting preformatted text
Subject: Mudcat rewriting preformatted text
This is a bug.

Try entering some text surrounded by <PRE>... </PRE> tags.

It should display exactly the way it was typed in, in a monospace font. (Which monospace font being up the browser).

But that isn't what Mudcat does. Any time you enter text like that, Mudcat changes it so that each line is preceded by <br> and a space. There is nothing the user's browser can do to reverse this.

The result is that if you copy a preformatted ABC tune out of a Mudcat thread, your ABC processor won't recognize it as being a tune. (ABC never uses leading spaces in its header section).

Preformatting is very useful if you're trying to make ABC look readable.

How about fixing this? Retrospectively would be good, but at least stop the input routines from rewriting any more preformatted text.