qdoc: Fix output of \br command
Since the \br was promoted from a macro to a QDoc command, its output has been enclosed in extra paragraph end/start tags, adding to the visible vertical space. This change fixes the issue by not closing the paragraph when QDoc encounters a \br command. Also removes the now-obsolete \br and \hr macros, as they are both proper commands. \BR and \HR substitute macros are kept. Task-number: QTBUG-37361 Change-Id: Iabbefb6e79268419792ccba42386f6342ccd175d Reviewed-by: Martin Smith <martin.smith@digia.com>
This commit is contained in:
parent
92c7cb8155
commit
4f2d1e2e04
@ -3,12 +3,11 @@ macro.Aring.HTML = "Å"
|
|||||||
macro.aring.HTML = "å"
|
macro.aring.HTML = "å"
|
||||||
macro.Auml.HTML = "Ä"
|
macro.Auml.HTML = "Ä"
|
||||||
macro.author = "\\b{Author:}"
|
macro.author = "\\b{Author:}"
|
||||||
macro.br.HTML = "<br />"
|
|
||||||
macro.BR.HTML = "<br />"
|
macro.BR.HTML = "<br />"
|
||||||
macro.copyright.HTML = "©"
|
macro.copyright.HTML = "©"
|
||||||
macro.eacute.HTML = "é"
|
macro.eacute.HTML = "é"
|
||||||
macro.gui = "\\b"
|
macro.gui = "\\b"
|
||||||
macro.hr.HTML = "<hr />"
|
macro.HR.HTML = "<hr />"
|
||||||
macro.iacute.HTML = "í"
|
macro.iacute.HTML = "í"
|
||||||
macro.key = "\\b"
|
macro.key = "\\b"
|
||||||
macro.menu = "\\b"
|
macro.menu = "\\b"
|
||||||
|
@ -649,7 +649,7 @@ void DocParser::parse(const QString& source,
|
|||||||
append(Atom::CodeBad,getCode(CMD_BADCODE, marker));
|
append(Atom::CodeBad,getCode(CMD_BADCODE, marker));
|
||||||
break;
|
break;
|
||||||
case CMD_BR:
|
case CMD_BR:
|
||||||
leavePara();
|
enterPara();
|
||||||
append(Atom::BR);
|
append(Atom::BR);
|
||||||
break;
|
break;
|
||||||
case CMD_BOLD:
|
case CMD_BOLD:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user