Forum Moderators: open

Message Too Old, No Replies

browser display different from view source content

         

rsennat

3:00 pm on Nov 10, 2005 (gmt 0)



Hi All,

The browser view is different from the actual view source content.

I have a simple TEXT data, which is not displayed line by line. Instead it displays in a single continuous line.

How can I get it displayed line by line as in the view source content?

Sample.....

<body>

<p style="margin-top: 0; margin-bottom: 0"><font face="Arial" style="font-size: 9pt">
Diagnostics :
{ !
############################################################
# TEST(1) "alias13"
# ----------------------------------------------------------
# TEST(cli) = enable secret www
# TEST(setup) = NULL
# TEST(submode) = NULL
# TEST(cli_undo) = no enable secret www
# TEST(rtr_mode) = config
# TEST(status) = success
# TEST(type) = PRC_CONFIG_CHANGE
# TEST(mode) = PRC_IMMEDIATE
# TEST(ha_sync) = true
# ----------------------------------------------------------

enable secret www
!PRC[success, change-type=PRC_CONFIG_CHANGE,
change-mode=PRC_IMMEDIATE, ha-sync-enable=true][command=enable secret
www]

iou201(config)#
Command issued:
enable secret www
Expected change type:PRC_CONFIG_CHANGE
Returned change type:PRC_CONFIG_CHANGE
Expected mode:PRC_IMMEDIATE
Returned mode:PRC_IMMEDIATE
Expected ha sync value:true
Returned ha sync value:true
}
</font></p>

</body>

Just try this body content, which is not displayed properly in the browser view as in the source content.

Thanks
Senthil

Robin_reala

3:12 pm on Nov 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Change:

<p style="margin-top: 0; margin-bottom: 0"><font face="Arial" style="font-size: 9pt"> (...) </font></p>

to:

<pre style="margin-top: 0; margin-bottom: 0; font: 9pt Arial;"> (...) </pre>

rsennat

3:26 pm on Nov 10, 2005 (gmt 0)



Hey Robin Reala,

Thats really a great stuff!

Thanks a lot!

rsennat

Robin_reala

3:39 pm on Nov 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No probs. The initial error was caused by HTML not regarding standard line breaks - this is the expected behaviour. The <pre> element means 'preformatted', i.e. take account of line breaks and spaces.