MATLAB Answers

0

Report Generator: how to add a line break in Paragraph or Text

Asked by Simulinker on 2 Oct 2014
Latest activity Answered by Sainath Varikuti on 20 Jan 2015
I am using Report Generator 3.15 (R2013b) and I added some text under my system snapshots in a paragraph (and tried text as well). How do I perform a line break in this text so I can see it in the generated PDF file?

  0 Comments

Sign in to comment.

2 Answers

Answer by Sainath Varikuti on 20 Jan 2015
 Accepted Answer

In order to fix this issue install the patch available at the following link:

  0 Comments

Sign in to comment.


Answer by Sandip Kumar on 8 Oct 2014

When you incorporate a 'text' field, documentation below: http://www.mathworks.com/help/rptgen/ug/text.html
There is an option: Style > Retain spaces and carriage returns, that should fix your issue.
Thanks, Sandip, MathWorks

  2 Comments

Thanks for your reply. I already tried this. Unfortunately with this option the borders of the sheets are ignored (no automatic line breaks any more), so that the text is partly outside of the sheet. Inserting a manual line break each time the text leaves the sheet is a workaround, but not a comfortable one though.
Any other ideas?
Tried few things, and it seems if you generate a Word Document(RTF), the borders are not ignored in the report.
Now this can be converted to PDF externally if needed.

Sign in to comment.