tabulation spacing

Viewed 90250

is there an equivalent to the consoles special char '\t' in html ?

12 Answers

i'am using that "pattern" for convert plain text to simple HTML output:

someString.toString().replaceAll("\r\n", "\n").replaceAll("\n", "\n<BR>\n").replaceAll("\t", "&nbsp;&nbsp;&nbsp;&nbsp;")

where "someString" is the source string we need to convert...

first... we convert all "\r\n" to "\n" (for Win and *nix format supporting), then converting "\n" and "\t" to HTML-like output

Related