       is_binary(unquote(doc)) or
       unquote(doc) == :doc_nil or
       (is_tuple(unquote(doc)) and
-       elem(unquote(doc), 0) in [:doc_cons, :doc_nest, :doc_break, :doc_group, :doc_color, :doc_line])
+       elem(unquote(doc), 0) in [:doc_cons, :doc_nest, :doc_break, :doc_group,
+                                 :doc_color, :doc_line, :doc_next_fits])
     end
   end
 

  @typep doc_group :: {:doc_group, t}
  defmacrop doc_group(group) do
    quote do: {:doc_group, unquote(group)}
  end

  @typep doc_color :: {:doc_color, t, IO.ANSI.ansidata}


  # Functional interface to "doc" records

  @type t ::
          :doc_nil
          | doc_line
          | doc_cons
          | doc_nest
          | doc_break
          | doc_group
          | doc_color
          | doc_next_fits
          | binary

  @typep doc_cons :: {:doc_cons, t, t}
  defmacrop doc_cons(left, right) do
