a9ab8d792a4d

Merge.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 07 Mar 2019 12:44:55 -0500
parents 1efadc1bb827 (current diff) e5103ef8e565 (diff)
children 3e34737c4a7e
branches/tags (none)
files README.markdown docs/01-usage.markdown

Changes

diff -r 1efadc1bb827 -r a9ab8d792a4d .hgtags
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgtags	Thu Mar 07 12:44:55 2019 -0500
@@ -0,0 +1,1 @@
+8524e8a06be6aae9156044329b5193a0f3e3beab v1.0.0
diff -r 1efadc1bb827 -r a9ab8d792a4d README.markdown
diff -r 1efadc1bb827 -r a9ab8d792a4d bobbin.asd
--- a/bobbin.asd	Thu Mar 07 12:42:29 2019 -0500
+++ b/bobbin.asd	Thu Mar 07 12:44:55 2019 -0500
@@ -4,7 +4,7 @@
   :homepage "https://sjl.bitbucket.io/bobbin/"
 
   :license "MIT"
-  :version "0.0.1"
+  :version "1.0.0"
 
   :depends-on (:split-sequence)
 
diff -r 1efadc1bb827 -r a9ab8d792a4d docs/01-usage.markdown
--- a/docs/01-usage.markdown	Thu Mar 07 12:42:29 2019 -0500
+++ b/docs/01-usage.markdown	Thu Mar 07 12:44:55 2019 -0500
@@ -79,6 +79,25 @@
      "another"
      "line")
 
+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
 ------------------------
 
@@ -90,3 +109,4 @@
 * Handle wide characters.
 * `unwrap` function to make writing paragraphs easier.
 * Maybe reindent broken lines?
+* Add `skip-p` argument to allow raw lines.