diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2018-04-20 19:12:04 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-20 19:12:04 -0600 |
| commit | 5c6383df43f3ac264c63fecf9663b98a710a002f (patch) | |
| tree | 525e7f9b3f82cf1375343fa99804fcae50607b6d /test/reader_test.rb | |
| parent | a70ce45fc201de6e674167558290e429e450ce41 (diff) | |
resolves #2369 change strategy for finding tags inside circumfix comments (PR #2683)
- allow any content after a tag directive if offset by a space
- add test to verify tag is found inside HTML inside a string in a source file
Diffstat (limited to 'test/reader_test.rb')
| -rw-r--r-- | test/reader_test.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/reader_test.rb b/test/reader_test.rb index 10b37066..6c90576f 100644 --- a/test/reader_test.rb +++ b/test/reader_test.rb @@ -971,12 +971,13 @@ include::fixtures/include-file.asciidoc[tags=snippetA;snippetB] test 'include directive supports tagged selection in language that uses circumfix comments' do { 'include-file.xml' => '<snippet>content</snippet>', - 'include-file.ml' => 'let s = SS.empty;;' + 'include-file.ml' => 'let s = SS.empty;;', + 'include-file.jsx' => '<p>Welcome to the club.</p>' }.each do |filename, expect| input = <<-EOS -[source,xml,indent=0] +[source,xml] ---- -include::fixtures/#{filename}[tag=snippet] +include::fixtures/#{filename}[tag=snippet,indent=0] ---- EOS |
