schema_salad.sourceline
=======================

.. py:module:: schema_salad.sourceline


Attributes
----------

.. autoapisummary::

   schema_salad.sourceline.lineno_re


Classes
-------

.. autoapisummary::

   schema_salad.sourceline.SourceLine


Functions
---------

.. autoapisummary::

   schema_salad.sourceline.relname
   schema_salad.sourceline.add_lc_filename
   schema_salad.sourceline.reflow_all
   schema_salad.sourceline.reflow
   schema_salad.sourceline.indent
   schema_salad.sourceline.bullets
   schema_salad.sourceline.strip_duplicated_lineno
   schema_salad.sourceline.strip_dup_lineno
   schema_salad.sourceline.cmap


Module Contents
---------------

.. py:data:: lineno_re

.. py:function:: relname(source)

.. py:function:: add_lc_filename(r, source)

.. py:function:: reflow_all(text, maxline = None)

.. py:function:: reflow(text, maxline, shift = '')

.. py:function:: indent(v, nolead = False, shift = '  ', bullet = '  ')

.. py:function:: bullets(textlist, bul)

   Indent using the specified number of bullets.


.. py:function:: strip_duplicated_lineno(text)

   Strip duplicated line numbers.

   Same as :py:meth:`strip_dup_lineno` but without reflow.


.. py:function:: strip_dup_lineno(text, maxline = None)

.. py:function:: cmap(d, lc = None, fn = None)

.. py:class:: SourceLine(item, key = None, raise_type = str, include_traceback = False)

   .. py:attribute:: item


   .. py:attribute:: key


   .. py:attribute:: raise_type


   .. py:attribute:: include_traceback


   .. py:method:: __enter__()


   .. py:method:: __exit__(exc_type, exc_value, tb)


   .. py:method:: file()


   .. py:method:: start()

      Determine the starting location.



   .. py:method:: end()

      Empty, for now.



   .. py:method:: makeLead()


   .. py:method:: makeError(msg)


