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
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
Post a Comment