Limit the depth of an ETX header to h6

This commit is contained in:
David Parsons
2010-02-02 16:50:23 -08:00
parent 5a5f406260
commit df807aa1cc
+2 -1
View File
@@ -487,7 +487,8 @@ headerblock(Paragraph *pp, int htyp)
* the leading and trailing `#`'s
*/
for (i=0; (T(p->text)[i] == T(p->text)[0]) && (i < S(p->text)-1); i++)
for (i=0; (T(p->text)[i] == T(p->text)[0]) && (i < S(p->text)-1)
&& (i < 6); i++)
;
pp->hnumber = i;