diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-01-13 10:05:09 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-01-13 10:05:09 (GMT) |
commit | 32f66fa1983d8720846b8f989a76e0d6d2df17b0 (patch) | |
tree | 54c652ea35ece525f8b8cd98ffd640bb77703d12 | |
parent | 52b9dd486d176e091b9aade39d6d6db7774d63da (diff) | |
parent | dc438879c6bb1475add244b381cb6671316c850c (diff) | |
download | Doxygen-32f66fa1983d8720846b8f989a76e0d6d2df17b0.zip Doxygen-32f66fa1983d8720846b8f989a76e0d6d2df17b0.tar.gz Doxygen-32f66fa1983d8720846b8f989a76e0d6d2df17b0.tar.bz2 |
Merge branch 'albert-github-feature/bug_pre_markdown'
-rw-r--r-- | src/markdown.cpp | 4 | ||||
-rw-r--r--[-rwxr-xr-x] | testing/081_brief_lists.h | 0 | ||||
-rwxr-xr-x | testing/084/084__markdown__pre_8f90.xml | 51 | ||||
-rw-r--r-- | testing/084_markdown_pre.f90 | 18 |
4 files changed, 72 insertions, 1 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp index 5253333..74492ea 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -2535,7 +2535,9 @@ QCString processMarkdown(const QCString &fileName,const int lineNr,Entry *e,cons out.clear(); int refIndent; // for replace tabs by spaces - QCString s = detab(input,refIndent); + QCString s = input; + if (s.at(s.length()-1)!='\n') s += "\n"; // see PR #6766 + s = detab(s,refIndent); //printf("======== DeTab =========\n---- output -----\n%s\n---------\n",s.data()); // then process quotation blocks (as these may contain other blocks) s = processQuotations(s,refIndent); diff --git a/testing/081_brief_lists.h b/testing/081_brief_lists.h index 8d13a93..8d13a93 100755..100644 --- a/testing/081_brief_lists.h +++ b/testing/081_brief_lists.h diff --git a/testing/084/084__markdown__pre_8f90.xml b/testing/084/084__markdown__pre_8f90.xml new file mode 100755 index 0000000..8a59bd9 --- /dev/null +++ b/testing/084/084__markdown__pre_8f90.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="">
+ <compounddef id="084__markdown__pre_8f90" kind="file" language="Fortran">
+ <compoundname>084_markdown_pre.f90</compoundname>
+ <sectiondef kind="func">
+ <memberdef kind="function" id="084__markdown__pre_8f90_1aae79d7941f2dce9b2d61fc852f3031d1" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
+ <type>subroutine</type>
+ <definition>subroutine subr1</definition>
+ <argsstring>()</argsstring>
+ <name>subr1</name>
+ <briefdescription>
+ <para>subr1 </para>
+ </briefdescription>
+ <detaileddescription>
+ <para>
+ <preformatted>
+ ___________________________
+</preformatted>
+ </para>
+ </detaileddescription>
+ <inbodydescription>
+ </inbodydescription>
+ <location file="084_markdown_pre.f90" line="9" column="1" bodyfile="084_markdown_pre.f90" bodystart="10" bodyend="9"/>
+ </memberdef>
+ <memberdef kind="function" id="084__markdown__pre_8f90_1a799d06e535f6b6e83331907261cef116" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
+ <type>subroutine</type>
+ <definition>subroutine subr2</definition>
+ <argsstring>()</argsstring>
+ <name>subr2</name>
+ <briefdescription>
+ <para>subr2 </para>
+ </briefdescription>
+ <detaileddescription>
+ <para>
+ <preformatted>
+ ___________________________
+</preformatted>
+ </para>
+ </detaileddescription>
+ <inbodydescription>
+ </inbodydescription>
+ <location file="084_markdown_pre.f90" line="17" column="1" bodyfile="084_markdown_pre.f90" bodystart="18" bodyend="17"/>
+ </memberdef>
+ </sectiondef>
+ <briefdescription>
+ </briefdescription>
+ <detaileddescription>
+ </detaileddescription>
+ <location file="084_markdown_pre.f90"/>
+ </compounddef>
+</doxygen>
diff --git a/testing/084_markdown_pre.f90 b/testing/084_markdown_pre.f90 new file mode 100644 index 0000000..1760b67 --- /dev/null +++ b/testing/084_markdown_pre.f90 @@ -0,0 +1,18 @@ +! // objective: test <pre> in Fortran, no translation of markdown +! // check: 084__markdown__pre_8f90.xml +!> \file + +!> subr1 +!><pre> +!> ___________________________ +!></pre> +subroutine subr1() +end subroutine + +!> subr2 +!><pre> +!> ___________________________ +!></pre> +!> +subroutine subr2() +end subroutine |