Message Boards Message Boards

0
|
3744 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

How to control paragraphs in string output?

Posted 3 years ago

It' a pretty stupid question, I know: How can I control the paragraph indentions for the output of some string?

str = StringRepeat[
  "This is some long string which should break into several lines. ", 
  4]

displays as: enter image description here

I.e. The first line is indented to left by about 3 characters. I don't know why. The string is just an ordinary string with no special characters; enter image description here

I was reading about ParagraphIndent and use it within Text, but his changes nothing (apart from the font): enter image description here

Hence a simple Grid looks very strange: enter image description here

Can anybody tell me, what I should do to get an ordinary paragraph with no first-line-indention?

POSTED BY: Werner Geiger
2 Replies
Posted 3 years ago

Check out LineIndent[].

POSTED BY: Mike Besso
Posted 3 years ago

Thanks Mike, that's it! I overlooked LineIndent, because ParagraphIndent is described accordingly, but only for Cells.

POSTED BY: Werner Geiger
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract