# HG changeset patch # User Steve Losh # Date 1551980707 18000 # Node ID 5d59e7aad78776d259a7cee4e90345cb2fbaccd2 # Parent 7974489eae481dc172372501927154042adf8e30 bobbin: Update site. diff -r 7974489eae48 -r 5d59e7aad787 bobbin/usage/index.html --- 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 @@ +

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:

+
(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")
+
+ +

Possible Future Features

Bobbin aims to be simple, but may grow a bit more functionality in the future (PRs welcome):

@@ -101,6 +121,7 @@
  • Handle wide characters.
  • unwrap function to make writing paragraphs easier.
  • Maybe reindent broken lines?
  • +
  • Add skip-p argument to allow raw lines.