diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2013-04-02 19:27:49 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2013-04-02 19:27:49 (GMT) |
commit | ebf4b3641c9149eaf4468aa8df64e1c7517e5f0c (patch) | |
tree | 23804fcf753b3487b9a1ea28d4d28b71fa4ae208 /src/markdown.cpp | |
parent | deaa34e0c1d990f37fe00e465ac7a22f705904f0 (diff) | |
download | Doxygen-ebf4b3641c9149eaf4468aa8df64e1c7517e5f0c.zip Doxygen-ebf4b3641c9149eaf4468aa8df64e1c7517e5f0c.tar.gz Doxygen-ebf4b3641c9149eaf4468aa8df64e1c7517e5f0c.tar.bz2 |
Release-1.8.3.1-20130402
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r-- | src/markdown.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp index 0a31bad..9411782 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -473,6 +473,25 @@ static int processNmdash(GrowBuf &out,const char *data,int,int size) return 0; } +/** Process quoted section "...", can contain one embedded newline */ +static int processQuoted(GrowBuf &out,const char *data,int,int size) +{ + int i=1; + int nl=0; + while (i<size && data[i]!='"' && nl<2) + { + if (data[i]=='\n') nl++; + i++; + } + if (i<size && data[i]=='"' && nl<2) + { + out.addStr(data,i+1); + return i+1; + } + // not a quoted section + return 0; +} + /** Process a HTML tag. Note that <pre>..</pre> are treated specially, in * the sense that all code inside is written unprocessed */ @@ -2197,6 +2216,7 @@ QCString processMarkdown(const QCString &fileName,Entry *e,const QCString &input g_actions[(unsigned int)'!']=processLink; g_actions[(unsigned int)'<']=processHtmlTag; g_actions[(unsigned int)'-']=processNmdash; + g_actions[(unsigned int)'"']=processQuoted; init=TRUE; } |