diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2010-04-18 13:59:11 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2010-04-18 13:59:11 (GMT) |
commit | adff8506a1c654db63ef362bbc90cddf7c156dd7 (patch) | |
tree | 5a45c08fe6f9334d87e18a8b8271d2c8cbb71e93 /src/htmldocvisitor.cpp | |
parent | eb1cb68e11a3b24222a49ed254f8f7aea2f73bae (diff) | |
download | Doxygen-adff8506a1c654db63ef362bbc90cddf7c156dd7.zip Doxygen-adff8506a1c654db63ef362bbc90cddf7c156dd7.tar.gz Doxygen-adff8506a1c654db63ef362bbc90cddf7c156dd7.tar.bz2 |
Release-1.6.3-20100418
Diffstat (limited to 'src/htmldocvisitor.cpp')
-rw-r--r-- | src/htmldocvisitor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp index 194faa5..c15d71a 100644 --- a/src/htmldocvisitor.cpp +++ b/src/htmldocvisitor.cpp @@ -89,6 +89,11 @@ static bool mustBeOutsideParagraph(DocNode *n) case DocNode::Kind_SecRefList: /* <hr> */ case DocNode::Kind_HorRuler: + /* CopyDoc gets paragraph markers from the wrapping DocPara node, + * but needs to insert them for all documentation being copied to + * preserve formatting. + */ + case DocNode::Kind_Copy: return TRUE; case DocNode::Kind_StyleChange: return ((DocStyleChange*)n)->style()==DocStyleChange::Preformatted || @@ -715,6 +720,7 @@ void HtmlDocVisitor::visitPre(DocPara *p) case DocNode::Kind_AutoListItem: case DocNode::Kind_SimpleSect: case DocNode::Kind_XRefItem: + case DocNode::Kind_Copy: needsTag = TRUE; break; case DocNode::Kind_Root: @@ -795,6 +801,7 @@ void HtmlDocVisitor::visitPost(DocPara *p) case DocNode::Kind_AutoListItem: case DocNode::Kind_SimpleSect: case DocNode::Kind_XRefItem: + case DocNode::Kind_Copy: needsTag = TRUE; break; case DocNode::Kind_Root: |