<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-05-11 17:31 GMT+02:00 Carlo Miron <span dir="ltr"><<a href="mailto:miron@python.it" target="_blank">miron@python.it</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">Il 11 maggio 2015 17:01, Manlio Perillo <<a href="mailto:manlio.perillo@gmail.com">manlio.perillo@gmail.com</a>> ha scritto:<br></span></blockquote><div><br></div><div>> [...] </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""> <br></span></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">
> Che io sappia, TOML non ha una sintassi conveniente per introdurre testo<br>
> multi linea.<br>
<br>
</span>Vuoi dire che<br>
<br>
    str1 = """<br>
    Roses are red<br>
    Violets are blue"""<br>
<br>
non è un formato conveniente? A me ricorda molto il conveniente<br>
formato adottato da un linguaggio di programmazione che non nominerò<br>
perché troppo in-topic per questa lista :P<br>
<div class=""><div class="h5"><br></div></div></blockquote><div><br></div><div>In yaml puoi avere anche dell'indentazione all'inizio di ogni riga, che viene ignorata.</div><div>Avere qualcosa come:</div><div><br></div><div>foo = """</div><div>Roses are red</div>Violets are blue"""</div><div class="gmail_quote"><br></div><div class="gmail_quote">è meno leggibile, almeno per me, di</div><div class="gmail_quote"><br></div><div class="gmail_quote">foo: |</div><div class="gmail_quote">    Roses are red<br>    Violets are blue</div><div class="gmail_quote"><br></div><div class="gmail_quote">Personalmente preferirei qualcosa come l'heredoc della shell, dato che è sia leggibile che semplice da implementare.</div><div class="gmail_quote"><br></div><div class="gmail_quote"><pre class="" style="border:0px none white;padding:0px;font-stretch:normal;margin-top:0px;margin-bottom:0px;vertical-align:top;background-image:none;background-repeat:initial">foo: <<- EOD</pre><pre class="" style="border:0px none white;padding:0px;font-stretch:normal;margin-top:0px;margin-bottom:0px;vertical-align:top;background-image:none;background-repeat:initial"><span style="font-family:arial,sans-serif;white-space:normal">    Roses are red</span><br style="font-family:arial,sans-serif;white-space:normal"><span style="font-family:arial,sans-serif;white-space:normal">    Violets are blue</span><br>  EOD<br></pre><pre class="" style="border:0px none white;padding:0px;font-stretch:normal;margin-top:0px;margin-bottom:0px;vertical-align:top;background-image:none;background-repeat:initial"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;background-color:rgb(255,255,255)"><br></span></pre><pre class="" style="border:0px none white;padding:0px;font-stretch:normal;margin-top:0px;margin-bottom:0px;vertical-align:top;background-image:none;background-repeat:initial"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;background-color:rgb(255,255,255)"><br></span></pre><pre class="" style="border:0px none white;padding:0px;font-stretch:normal;margin-top:0px;margin-bottom:0px;vertical-align:top;background-image:none;background-repeat:initial"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;background-color:rgb(255,255,255)">Ciao  Manlio</span><font color="#000000" face="monospace, monospace"><span style="font-size:15.75px;line-height:1.2em;background-color:rgb(249,249,249)"><br></span></font></pre></div></div></div>