org-list: Fix continuated items repair
commit836d9db8a9fe19d790902a1bda7beafb225eb192
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 14 Feb 2015 11:37:41 +0000 (14 12:37 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 14 Feb 2015 11:37:41 +0000 (14 12:37 +0100)
treeff68812de1035c7df858a959371945a51ec8e13c
parent55ce4b74b363a8b78542a30eb8cfd39a1757a935
org-list: Fix continuated items repair

* lisp/org-list.el (org-list-struct-apply-struct): Preserve disparate
  indentation in contuated contents, i.e., contents after a plain list
  still within an item.

* testing/lisp/test-org-list.el (test-org-list/repair): Add test.

This fixes the following case:

  - item
     - child
     item contents
       with different indentation

Reported-by: Mark Edgington <edgimar@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/94977>
lisp/org-list.el
testing/lisp/test-org-list.el