jeudi 12 novembre 2015

formatting of text in p tag not formatting?

Evening all...User enters data into a record which is stored in the DB. If I copy the text from this record into note pad it is displayed formatted correctly...

    Drive along the coastline and drink in the sights exploring the newly-designated Wild Atlantic Way where secrets lie hidden in remote peninsulas. And on the mountain roads, the sweet aroma of turf smoke will greet you as you make your way around.

The county can justifiably make many claims: the highest sea cliffs and the largest sand dunes in Europe, the biggest waves in Ireland. With no fewer than 13 unspoilt golden strands, it proudly boasts the largest number of Blue Flag beaches of any county in Ireland.

Where, the visitor may ask, is the essence of Donegal? There is not one particular spot since it is to be found everywhere: from the burstingly fresh local seafood, at the summit of Errigal mountain, in the Killybegs fishing boats bringing home the catch, in the ruins of a medieval castle, on a ferry ride to Tory Island, on top of an ancient hillfort, or in the reminiscent <br/> call of the corncrake or shrill whistle of the oystercatcher.

However when displaying on screen in the browser I put the text inside a <p> tag but it displays on screen as...

Drive along the coastline and drink in<br /> the sights exploring the newly-designated Wild Atlantic Way where secrets lie hidden in remote peninsulas. And on the mountain roads, the sweet aroma of turf smoke will greet you as you make your way around. The county can justifiably make many claims: the highest sea cliffs and the largest sand dunes in Europe, the biggest waves in Ireland. With no fewer than 13 unspoilt golden strands, it proudly boasts the largest number of Blue Flag beaches of any county in Ireland.Where, the visitor may ask, is the essence of Donegal? There is not one particular spot since it is to be found everywhere: from the burstingly fresh local seafood, at the summit of Errigal mountain, in the Killybegs fishing boats bringing home the catch, in the ruins of a medieval castle, on a ferry ride to Tory Island, on top of an ancient hillfort, or in the reminiscent <br/> call of the corncrake or shrill whistle of the oystercatcher.

As you can see no formatting, line spaces after paragraphs etc...does anyone know why? thanks

code that renders the html....

//mvc dataTable being displayed
     <p>@row["Description"]</p>

Aucun commentaire:

Enregistrer un commentaire