<div dir="ltr">The erl_prettypr.erl module uses the prettypr.erl module to do the formatting, so you can look at that as an example.<div><br></div><div>Generating nice-looking tables is however not something that fits well with how prettypr.erl works. It wants to be able to make local choices between vertical or horizontal alignment, and a table requires that the lines separating cells are aligned both horizontally and vertically across the whole table. Maybe it would be straightforward to add such grid alignment as an extra capability to prettypr.erl though. Otherwise, you could use it to format individual pieces of text to fit into the cells of the table once you have chosen the cell sizes.</div><div><br></div><div class="gmail_extra"><div><div class="gmail_signature" data-smartmail="gmail_signature">        /Richard</div></div>
<br><div class="gmail_quote">2017-10-23 10:42 GMT+02:00 Frank Muller <span dir="ltr"><<a href="mailto:frank.muller.erl@gmail.com" target="_blank">frank.muller.erl@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">What I would like to achieve is something similar to Scribe but in pure Erlang:</div><div dir="auto"><br></div><div dir="auto"><a href="https://github.com/codedge-llc/scribe" target="_blank">https://github.com/codedge-<wbr>llc/scribe</a><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div dir="auto"><br></div><div dir="auto">/Frank</div></font></span><div><div class="h5"><br><div class="gmail_quote"><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">erlang/19.1/lib/syntax_tools-<wbr>2.1/src/prettypr.erl</div><div dir="auto"><br></div><div dir="auto"><a href="http://erlang.org/doc/man/prettypr.html" target="_blank">http://erlang.org/doc/man/<wbr>prettypr.html</a><br></div></div><div><br><div class="gmail_quote"><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div>Greetings,</div><div><br></div><div>Where did you find a module called prettyptr? Searching for it I found nothing.<br></div>I have used the module erl_prettypr for code, but I do not think that is what you want.</div><div>Would you mind explaining slightly more about what you are trying to achieve?<br><br></div>bengt<br></div><div class="gmail_extra"><br><div class="gmail_quote"></div></div><div class="gmail_extra"><div class="gmail_quote">On Mon, Oct 23, 2017 at 10:23 AM, Frank Muller <span><<a href="mailto:frank.muller.erl@gmail.com" target="_blank">frank.muller.erl@gmail.com</a>></span> wrote:<br></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hey guys,</div><div dir="auto"><br></div><div dir="auto">Is there any library which helps pretty print list of “list of strings” into a nice table?</div><div dir="auto"><br></div><div dir="auto">I’ve found this module prettyptr shipped with the VM. But I couldn’t find any example on how to use it.</div><div dir="auto"><br></div><div dir="auto">Any idea is very welcome.</div><div dir="auto"><br></div><div dir="auto">Thanks</div><span class="m_8741332735432830410m_-7326307244783919962m_-3101027185398919797HOEnZb"><font color="#888888"><div dir="auto">/Frank</div>
</font></span><br></blockquote></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>
______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
</blockquote></div></div></blockquote></div></div></div></div>
<br>______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div></div>