Use slightly better algorithm for removing initial whitespace.
commit0b0124ee7b98eabb6c05553d8f3d3f525bac98fb
authorMichael Olson <mwolson@gnu.org>
Mon, 6 Mar 2006 00:58:00 +0000 (6 00:58 +0000)
committerMichael Olson <mwolson@gnu.org>
Mon, 6 Mar 2006 00:58:00 +0000 (6 00:58 +0000)
treeb2b14288fbec713737b937fb3be01f10179bc6af
parent8fcffe1deb9299e28f6f7e0307ac50c255d628bd
Use slightly better algorithm for removing initial whitespace.

* lisp/muse-publish.el (muse-publish-surround-dl): Keep track of whether
  the definition occurred on the same line as the term.
  (muse-publish-surround-text): Use a slightly better algorithm for
  removing initial indentation of list items.  This way, we preserve
  nesting of lists and also deal with same-level items that occur after
  nested items.  This probably doesn't make much of a difference in the
  output, but it should make support of nested definition lists a bit
  less troublesome in some cases.
  (muse-forward-dl-entry): Deal with ambiguity in muse-list-item-regexp
  regexp.
  (muse-forward-dl-part, muse-forward-list-item): Don't clobber match
  data.  Don't remove any text.  This makes the function easier to reuse
  in display-only situations.
git-archimport-id: mwolson@gnu.org--2006/muse--main--1.0--patch-43
ChangeLog.2006
lisp/muse-publish.el