java - Displaying tab in JSP page -


i trying display text file content in body of jsp page.i used bufferedreader , stringbuilder it. file contents contains tab instead of spaces between words.while displaying ,the tab between words displaying single space between words in browser.

thanks

use 1 of following

1. <pre></pre> blocks. 2. css - using padding 3. 4 times &nbsp; 

after reading file , while generating html can use 1 of these options.

for more options refer -

html: tab space instead of multiple non-breaking spaces ("nbsp")?


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -