fix annot (recognise _ as first char in section title)
authornsz <nsz@port70.net>
Tue, 23 Aug 2011 22:37:38 +0000 (00:37 +0200)
committernsz <nsz@port70.net>
Tue, 23 Aug 2011 22:37:38 +0000 (00:37 +0200)
annot.sh
n1570.html

index a2cc13b..47eadff 100755 (executable)
--- a/annot.sh
+++ b/annot.sh
@@ -142,7 +142,7 @@ function dosect(s,   n,a) {
        if (id ~ /Annex/)
                id = a[2]
        if (id ~ /^([A-Z]|[1-9]\.|[1-9A-Z]\.[0-9.]*[0-9]|Contents|Index|Foreword|Introduction|Bibliography)$/ &&
        if (id ~ /Annex/)
                id = a[2]
        if (id ~ /^([A-Z]|[1-9]\.|[1-9A-Z]\.[0-9.]*[0-9]|Contents|Index|Foreword|Introduction|Bibliography)$/ &&
-           (n==1 || a[2] ~ /^[A-Z.v]/)) {
+           (n==1 || a[2] ~ /^[A-Z.v_]/)) {
                sub(/^ +/,"",s)
                if (id ~ /\.$/)
                        id = substr(id,1,length(id)-1)
                sub(/^ +/,"",s)
                if (id ~ /\.$/)
                        id = substr(id,1,length(id)-1)
index a628c03..f5e5640 100644 (file)
@@ -18947,7 +18947,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
  returns the number of bytes modified, not including a terminating null character, if
  any.<sup><a href="#note306"><b>306)</b></a></sup>
 <!--page 379 -->
  returns the number of bytes modified, not including a terminating null character, if
  any.<sup><a href="#note306"><b>306)</b></a></sup>
 <!--page 379 -->
- <a href="#7.23">7.23</a> _Noreturn <a href="#7.23">&lt;stdnoreturn.h&gt;</a>
+
+<p><small><a href="#Contents">Contents</a></small>
+<h3><a name="7.23" href="#7.23">7.23 _Noreturn &lt;stdnoreturn.h&gt;</a></h3>
 <p><!--para 1 -->
  The header <a href="#7.23">&lt;stdnoreturn.h&gt;</a> defines the macro
 <pre>
 <p><!--para 1 -->
  The header <a href="#7.23">&lt;stdnoreturn.h&gt;</a> defines the macro
 <pre>
@@ -25622,7 +25624,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
               char * restrict dst, rsize_t dstmax,
               const wchar_t * restrict src, rsize_t len);
 </pre>
               char * restrict dst, rsize_t dstmax,
               const wchar_t * restrict src, rsize_t len);
 </pre>
- <a href="#B.22">B.22</a> _Noreturn <a href="#7.23">&lt;stdnoreturn.h&gt;</a>
+
+<p><small><a href="#Contents">Contents</a></small>
+<h3><a name="B.22" href="#B.22">B.22 _Noreturn &lt;stdnoreturn.h&gt;</a></h3>
 <pre>
          noreturn
 </pre>
 <pre>
          noreturn
 </pre>