diff options
Diffstat (limited to 'Source/cmDocumentation.cxx')
-rw-r--r-- | Source/cmDocumentation.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx index b0643b0..83be32d 100644 --- a/Source/cmDocumentation.cxx +++ b/Source/cmDocumentation.cxx @@ -654,6 +654,11 @@ cmDocumentation::Form cmDocumentation::GetFormFromFilename( return cmDocumentation::ManForm; } + if (ext == ".RST") + { + return cmDocumentation::RSTForm; + } + return cmDocumentation::TextForm; } @@ -1580,6 +1585,9 @@ void cmDocumentation::SetForm(Form f, int manSection) this->ManFormatter.SetManSection(manSection); this->CurrentFormatter = &this->ManFormatter; break; + case RSTForm: + this->CurrentFormatter = &this->RSTFormatter; + break; case TextForm: this->CurrentFormatter = &this->TextFormatter; break; |