X-Git-Url: http://nsz.repo.hu/git/?p=c-standard;a=blobdiff_plain;f=annot.sh;h=47eadff06aac8e98eaba5a24a39468b86219edb2;hp=debb71df730240513a5922e4c977b00ebbe14cba;hb=5234a4a3a7a05617ef8685900091792cf82710f1;hpb=dd0127cddb03b6a5ed3079cb1f0dd57bd098c579 diff --git a/annot.sh b/annot.sh index debb71d..47eadff 100755 --- 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)$/ && - (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) @@ -182,8 +182,10 @@ BEGIN { indent = 0 for (i = 1; i < n; i++) { if (a[i] ~ /^@/) { - if (a[i] ~ /^@para/) + if (a[i] ~ /^@para/) { + endpre() endlist() + } print a[i] } else { s = substr(a[i], indent+1)