summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-01-11 10:08:36 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-01-11 10:08:36 (GMT)
commit5697a9e8dbb298aede810c1ce6daded80bf40952 (patch)
tree8e3275de2a7a3329a83e5094dea2b740ca1e0606 /testing
parent121ec253945f6563ac6731e3596cd9beaa39cb72 (diff)
downloadDoxygen-5697a9e8dbb298aede810c1ce6daded80bf40952.zip
Doxygen-5697a9e8dbb298aede810c1ce6daded80bf40952.tar.gz
Doxygen-5697a9e8dbb298aede810c1ce6daded80bf40952.tar.bz2
No translation of markdown in <pre>
According to the documentation: Doxygen does not have this requirement, and will also process Markdown formatting inside such HTML blocks. The only exception is <pre> blocks, which are passed untouched (handy for ASCII art). Though in case the `</pre>` is the last statement in a non block type comment the markdown is processed. C has block type /* ... */ and /// is translated to this, Fortran, Python are line type comments. Adding a `\n` at the when no `\n` is present at the end solves the problem.
Diffstat (limited to 'testing')
-rwxr-xr-xtesting/081/081__markdown__pre_8f90.xml51
-rwxr-xr-xtesting/081_markdown_pre.f9018
2 files changed, 69 insertions, 0 deletions
diff --git a/testing/081/081__markdown__pre_8f90.xml b/testing/081/081__markdown__pre_8f90.xml
new file mode 100755
index 0000000..7c713cf
--- /dev/null
+++ b/testing/081/081__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="081__markdown__pre_8f90" kind="file" language="Fortran">
+ <compoundname>081_markdown_pre.f90</compoundname>
+ <sectiondef kind="func">
+ <memberdef kind="function" id="081__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="081_markdown_pre.f90" line="9" column="1" bodyfile="081_markdown_pre.f90" bodystart="10" bodyend="9"/>
+ </memberdef>
+ <memberdef kind="function" id="081__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="081_markdown_pre.f90" line="17" column="1" bodyfile="081_markdown_pre.f90" bodystart="18" bodyend="17"/>
+ </memberdef>
+ </sectiondef>
+ <briefdescription>
+ </briefdescription>
+ <detaileddescription>
+ </detaileddescription>
+ <location file="081_markdown_pre.f90"/>
+ </compounddef>
+</doxygen>
diff --git a/testing/081_markdown_pre.f90 b/testing/081_markdown_pre.f90
new file mode 100755
index 0000000..590bbbf
--- /dev/null
+++ b/testing/081_markdown_pre.f90
@@ -0,0 +1,18 @@
+! // objective: test <pre> in Fortran, no translation of markdown
+! // check: 081__markdown__pre_8f90.xml
+!> \file
+
+!> subr1
+!><pre>
+!> ___________________________
+!></pre>
+subroutine subr1()
+end subroutine
+
+!> subr2
+!><pre>
+!> ___________________________
+!></pre>
+!>
+subroutine subr2()
+end subroutine