how to genrate a text string with bullet indentation

  • Thread starter Thread starter Linda Chen
  • Start date Start date
L

Linda Chen

I need to genrate a text string from my application and
submit the string to my client throught a website. My
client ask us to generate the string with their "format".
That means in side my string I need to have white space
and indentation. For example, the string may look like:

"A. this is my string
1. this is my first test result,
this is my first test result,
this is my first test resul
2. ..."

I use IndentedTextWriter right now, but it only create a
indented space for the first line. Is it possible I can
generate formatting easily?

thanks.

Linda Chen
 
What does their "format" expect? Does it expect a tab character? Does
it expect spaces? What?

A string has no concept of "indenting". Indenting is performed by the
app that displays the string and an indent is usually performed when a
tab character is encountered in the string. But the app could use any
code to indicate an indent.

Find out what the client format is and then build your string to match
that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top