# HG changeset patch # User Steve Losh # Date 1551980695 18000 # Node ID a9ab8d792a4d004eadbd4bc24a0f902f4c807e01 # Parent 1efadc1bb82726ad8eaa0471de2c627adeff0991# Parent e5103ef8e5651fa302ecef6bff145c0f570c8cb6 Merge. 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.