5d59e7aad787

bobbin: Update site.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 07 Mar 2019 12:45:07 -0500
parents 7974489eae48
children c084d84024d0
branches/tags (none)
files bobbin/usage/index.html

Changes

--- a/bobbin/usage/index.html	Thu Mar 07 12:41:26 2019 -0500
+++ b/bobbin/usage/index.html	Thu Mar 07 12:45:07 2019 -0500
@@ -92,6 +92,26 @@
 </pre></div>
 
 
+<p>The strings in the list may contain newlines themselves — they will be split and
+the result will still be one flat list of lines.  You can use this to trick
+Bobbin into returning a list even when you're just passing it one string, by
+wrapping the input in a list:</p>
+<div class="codehilite"><pre><span/>(defparameter *foo* (format nil "foo and bar~%cat and mouse"))
+
+(bobbin:wrap *foo* 8)
+"foo and
+bar
+cat and
+mouse"
+
+(bobbin:wrap (list *foo*) 8)
+("foo and"
+ "bar"
+ "cat and"
+ "mouse")
+</pre></div>
+
+
 <h2 id="possible-future-features">Possible Future Features</h2>
 <p>Bobbin aims to be simple, but may grow a bit more functionality in the future
 (PRs welcome):</p>
@@ -101,6 +121,7 @@
 <li>Handle wide characters.</li>
 <li><code>unwrap</code> function to make writing paragraphs easier.</li>
 <li>Maybe reindent broken lines?</li>
+<li>Add <code>skip-p</code> argument to allow raw lines.</li>
 </ul>
                 </div>
             <footer><p>Created by <a href="http://stevelosh.com">Steve Losh</a>.</p>