From 032d8fd0cd8bd33448186081c54168889e25d55e Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sat, 21 Jul 2018 14:42:18 +0200 Subject: Bug 779407 - plantuml:an unwanted newline is generated after @startuml --- src/docparser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/docparser.cpp b/src/docparser.cpp index 205e818..0cb4ea3 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -5635,7 +5635,8 @@ int DocPara::handleCommand(const QCString &cmdName) defaultHandleTitleAndSize(CMD_STARTUML,dv,dv->children(),width,height); doctokenizerYYsetStatePlantUML(); retval = doctokenizerYYlex(); - dv->setText(g_token->verb); + int line=0; + dv->setText(stripLeadingAndTrailingEmptyLines(g_token->verb,line)); dv->setWidth(width); dv->setHeight(height); if (jarPath.isEmpty()) -- cgit v0.12