diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2011-05-17 10:36:32 +1200 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2011-05-17 10:36:32 +1200 |
commit | 1ed6a68dcecfd0edade4bfe11918bc6c4c2724b0 (patch) | |
tree | 626ef6a9ec3ab1667278b2133e34d799df084bab | |
parent | 4f9d13fb92abc727b29d5336631c699fa573ad73 (diff) | |
download | asciidoc-1ed6a68dcecfd0edade4bfe11918bc6c4c2724b0.tar.gz |
Added 'dropped line' trace name which lists lines containing undefined
attributes that where dropped from the output. Patch submitted by Lionel Orry,
see:
http://groups.google.com/group/asciidoc/browse_thread/thread/f771ff56b54e8083
-rwxr-xr-x | asciidoc.py | 1 | ||||
-rw-r--r-- | doc/asciidoc.txt | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/asciidoc.py b/asciidoc.py index fcb2cdb..7846de3 100755 --- a/asciidoc.py +++ b/asciidoc.py @@ -1069,6 +1069,7 @@ def subs_attrs(lines, dictionary=None): # Drop line if it contains unsubstituted {name} references. skipped = re.search(r'(?su)\{[^\\\W][-\w]*?\}(?!\\)', line) if skipped: + trace('dropped line', line) continue; # Expand system attributes (eval has precedence). reos = [ diff --git a/doc/asciidoc.txt b/doc/asciidoc.txt index 68b0c60..0a400e5 100644 --- a/doc/asciidoc.txt +++ b/doc/asciidoc.txt @@ -5559,6 +5559,7 @@ portions of the document). <blockname> block close <blockname> block open <subs> +dropped line (a line containing an undefined attribute reference). floating title footer header |