diff options
| author | Dan Allen <dallen@redhat.com> | 2013-06-27 00:49:27 -0600 |
|---|---|---|
| committer | Dan Allen <dallen@redhat.com> | 2013-06-27 00:49:27 -0600 |
| commit | 76f19674e1eabdf6c973a7dcbeafc89ad6615599 (patch) | |
| tree | 77469a4a31fa298cea8c410c2f962bd9f675b1de /lib | |
| parent | 8d3d80f3bef205bd5f02ebd188915c2b3a89f987 (diff) | |
resolves #457 honor showtitle attribute as alternate to notitle!
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/asciidoctor/document.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor/document.rb b/lib/asciidoctor/document.rb index fa7aa586..a18cc603 100644 --- a/lib/asciidoctor/document.rb +++ b/lib/asciidoctor/document.rb @@ -428,7 +428,7 @@ class Document < AbstractBlock end def notitle - @attributes.has_key? 'notitle' + !@attributes.has_key?('showtitle') && @attributes.has_key?('notitle') end def noheader |
