Output as ASCII text

5 posts by 2 authors in: Forums > CMS Builder
Last Post: March 7, 2009   (RSS)

By ColinW-O - March 6, 2009

One of my clients is a pigeon racing club (it's a big "sport" here in Europe!) They output their results from races in ASCII text only and I created a Races link where they can cut and paste their results.

I changed the Content field to be text field rather than WYSIWYG so it keeps the same format since they're nicely done in columns etc. However when I publish it obviously outputs in HTML rather than ASCII text so it loses the whole format.

Any way I can change this?

Thanks.

Colin

Re: [ColinW-O] Output as ASCII text

By ross - March 6, 2009

Hi Colin

Thanks for posting!

If you are pasting in plain text, I am not sure where the HTML tags would be coming from in your output.

What I am thinking you can try is on your template stick a <pre> tag before where you start outputting and a </pre> tag after.

That might work. If it doesn't, would you mind posting a link to the page you are working on so I can have a closer look?

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Output as ASCII text

By ColinW-O - March 6, 2009

The <pre> tags did the job! Awesome.

Thanks.

Re: [ColinW-O] Output as ASCII text

By ColinW-O - March 7, 2009

Never mind, I fixed, I forgot to close a font tag :)