Handle malformed :PROPERTY: drawers
Until now we'd get index out of range errors trying to index into the match if :PROPERTIES: was followed by a non-property. Thanks fuzz
This commit is contained in:
parent
76b157b8ce
commit
adeeb9235d
5 changed files with 28 additions and 0 deletions
12
org/testdata/headlines.html
vendored
12
org/testdata/headlines.html
vendored
|
@ -12,6 +12,8 @@
|
|||
</li>
|
||||
<li><a href="#headline-6">excluded headline</a>
|
||||
</li>
|
||||
<li><a href="#headline-7">malformed property drawer</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<h1 id="headline-1">
|
||||
|
@ -76,3 +78,13 @@ it's possible to use <code class="verbatim">#+SETUPFILE</code> - in this cas
|
|||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
<h1 id="headline-7">
|
||||
malformed property drawer
|
||||
</h1>
|
||||
<p>
|
||||
:PROPERTIES:
|
||||
not a property
|
||||
</p>
|
||||
<p>
|
||||
:END:
|
||||
</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue